I have this select in my form:
<select id="select" name="gametype" onchange="myFunction(event)">
<option disabled selected value>Please Select Game Type</option>
<option value="28,000" >HD 6 Cameras saterday</option>
<option value="30,000" >HD 6 Cameras</option>
<option value="50,0000">HD 7 Cameras saterday</option>
<option value="32,0000">HD 7 Cameras</option>
<option value="45,000" >4k 7 Cameras saterday</option>
<option value="32,000" >4k 7 Cameras</option>
</select>
I am passing the value of the option in $_POST
. How can I also pass the text of the option? For example, if the value is "28,800" I also want to pass "HD 6 Cameras saterday."