Hi,
I nee a help on PHP
I am building a web form which POSTs the data to a php file. It contains a menu item like the one bellow,
In the php file I can get the user selection as the text, ie if user selected the first optionCode:<select name="select1"> <option selected="selected">Student</option> <option>Employment</option> <option>Business</option> <option>Profession</option> <option>Workers</option> </select>
$_POST['select1'] gives me the value "Student"....
Here is the problem, I don't want the TEXT, I need the list index. ie If the user selects the option Student I need its index ie 0
Any idea how to get it ?? please help
Regards,
Jim Jose


LinkBack URL
About LinkBacks




