...

View Full Version : How to pass a combo box value to next page?



Ramki
05-09-2006, 06:43 AM
hi all,
i've a combo box filled with values. i need to pass the value of the selected value to the next page.how do i do it.plz help.

khendar
05-09-2006, 08:15 AM
<form name="blah" method="post" action="form_process.php">
...
<select NAME="combo">
<option VALUE="value1">Value 1
<option VALUE="value2">Value 2
</select>
...
</form>



In form_process.php:


$combo = $_POST['combo']; // $combo will equal either "value1" or "value2"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum