Whether it is possible to get the Text of a HTML <select> list instead of its value using PHP?
For example from the given below HTML code
Code:
<option value='1'>January</option>
I want to get the text "January", if it is possible then how?
I cant use "January" for both text as well as value of drop-down because both are for different purpose.
Thanks in advance
hi there is a solution. but you would have to use ajax
onsubmit, use javascript to capture the text from the drop down list. pass this text to php using ajax. that should do the trick =)