102
rated 0 times
[
108]
[
6]
/ answers: 1 / hits: 56164
/ 12 Years ago, mon, august 13, 2012, 12:00:00
in the following:
<form action=test.php method=POST>
<select id=test name=test>
<option value=1>Test One</option>
<option value=2>Test Two</option>
</select>
</form>
in test.php, I can get 1 or 2 as follow:
$result=$_POST['test'];
How can I get the text of the selected option (i.e. Test One or Test Two) using php
More From » php