|
-
Nov 13th, 2005, 07:52 AM
#1
Thread Starter
Fanatic Member
retrieve item of menu list
how to retrieve text of the item in the menu list?
<option value ="1">One</option>
how to get the word "One"??
$no = $_POST['???']???
Last edited by kenny_oh; Nov 15th, 2005 at 06:19 PM.
-
Nov 13th, 2005, 10:41 PM
#2
PowerPoster
Re: retrieve item of menu list
You can't get the word "One", you can only get the number, which you have in the Value as far as I'm aware (atleast with PHP anyway)
<select name="myname">
<option value="1">One</option>
</select>
$no = $_POST["myname"];
Something like that.
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
|