Results 1 to 2 of 2

Thread: retrieve item of menu list

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Resolved 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.

  2. #2
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    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.
    Don't Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width