|
-
Jan 21st, 2008, 06:35 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Extracting html select value post form....
<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 ???????
-
Jan 21st, 2008, 07:10 PM
#2
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.
-
Jan 22nd, 2008, 12:47 AM
#3
Thread Starter
Hyperactive Member
Re: Extracting html select value post form....
 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|