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.s rc='./images/web-aroundworld458c .jpg';this.heig ht=102;this.wid th=200"
ondblclick="thi s.src='./images/web-aroundworld458c .jpg';this.heig ht=51;this.widt h=100"
alt="" /><br />
<input type="radio" name="image_cho ice" 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_choi ce" and not
what I expected...."lp 15-web-aroundworld458c ".
If the value of image_choice is "lp15-web-aroundworld458c ", then why would
it return the literal "image_choi ce"?
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
<img src="images/web-aroundworld458c .jpg" width="100" height="51"
border="0"
onclick="this.s rc='./images/web-aroundworld458c .jpg';this.heig ht=102;this.wid th=200"
ondblclick="thi s.src='./images/web-aroundworld458c .jpg';this.heig ht=51;this.widt h=100"
alt="" /><br />
<input type="radio" name="image_cho ice" 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_choi ce" and not
what I expected...."lp 15-web-aroundworld458c ".
If the value of image_choice is "lp15-web-aroundworld458c ", then why would
it return the literal "image_choi ce"?
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
Comment