| 
	
 | 
 Posted by Thad on 03/31/07 22:36 
On one page I have radio buttons below pictures, here is one picture... 
 
  <img src="images/web-aroundworld458c.jpg" width="100" height="51"  
border="0"  
onclick="this.src='./images/web-aroundworld458c.jpg';this.height=102;this.width=200"  
ondblclick="this.src='./images/web-aroundworld458c.jpg';this.height=51;this.width=100"  
alt="" /><br /> 
<input type="radio"  name="image_choice" value="lp15-web-aroundworld458c"  
style="width: 35px;"/>LP-15<br /> 
 
....then I have a link to a page in which if a radio button is chosen, a  
value will be passed to the new page. 
 
<?php 
$_SESSION['image_choice']=image_choice; 
?> 
 
The theory works but what is passed is the wording "image_choice" and not  
what I expected...."lp15-web-aroundworld458c". 
 
If the value of image_choice is "lp15-web-aroundworld458c", then why would  
it return the literal "image_choice"? 
How can I get the value of the button to go to the new page? 
 
Also, does session_start(); need to be on each php page when passing the  
values between pages? 
 
Thanks, 
Thad
 
  
Navigation:
[Reply to this message] 
 |