[RESOLVED] Extracting html select value post form....
Quote:
<SELECT NAME="movierating">
<OPTION VALUE="1">1 / 10
<OPTION VALUE="2">2 / 10
<OPTION VALUE="3">3 / 10
<OPTION VALUE="4">4 / 10
<OPTION VALUE="5">5 / 10
<OPTION VALUE="6">6 / 10
<OPTION VALUE="7">7 / 10
<OPTION VALUE="8">8 / 10
<OPTION VALUE="9">9 / 10
<OPTION VALUE="10">10 / 10
</SELECT>
How do I use the $_POST thingy to get the selected value from "movierating" in a post php script, i.e a second document not the form document. Hope that makes sense.
something like $rating = $_POST ???????
Re: Extracting html select value post form....
You use the name you have given it in the select element.
Code:
$_POST['movierating'];
Also, if it is being instered into a database ensure it is converted to an integer first.
Re: Extracting html select value post form....
Quote:
Originally Posted by visualAd
You use the name you have given it in the select element.
Code:
$_POST['movierating'];
Also, if it is being instered into a database ensure it is converted to an integer first.
Coolio that did it :wave: