You are here: passing radio button value « All PHP « IT news, forums, messages
passing radio button value

Posted by Thad on 04/01/07 04:54

PHP page 1: I have two radio buttons...
---snip---
<input type="radio" name="image_choice" value="lp13-web-wild165c"
style="width: 35px;"/>LP-13<br />
<input type="radio" name="image_choice" value="lp14-web-wild289c"
style="width: 35px;"/>LP-14<br />
---snip---

PHP page 2: Problem...on page 2, how would I show which button was pressed?

Would it be....
---snip---
<?php echo $_SESSION['image_choice'];
?>
---snip---

What I am looking to get as a result is lp13-web-wild165c or
lp14-web-wild289c to be printed to the screen.

My result so far is the litteral "image_choice", not the value of
image_choice. How would I pass the value of the radio button?

Thanks,
Thad

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация