how to retrieve text of the item in the menu list?
<option value ="1">One</option>
how to get the word "One"??
$no = $_POST['???']???
Printable View
how to retrieve text of the item in the menu list?
<option value ="1">One</option>
how to get the word "One"??
$no = $_POST['???']???
You can't get the word "One", you can only get the number, which you have in the Value as far as I'm aware (atleast with PHP anyway)
<select name="myname">
<option value="1">One</option>
</select>
$no = $_POST["myname"];
Something like that.