#1
  1. No Profile Picture
    miguelgarcia
    Guest
    Devshed Newbie (0 - 499 posts)
    Hello,

    I am unsure how to do something.
    I have a select menu on a form, (named "state") and it has the "MULTIPLE" attribute assigned.

    My problem is that when I submit the form to my PHP script, the $state variable only has the value for one of the the states selected. I was expecting $state to be an array, but its not.

    How do you receive all of the options selected?

    Thanks for your help.
  2. #2
  3. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    Give the select the name "state[]"

    That will give you an array.

Similar Threads

  1. argh, validating multiple list menu thingy
    By vaaaska in forum HTML Programming
    Replies: 4
    Last Post: February 11th, 2004, 06:29 AM
  2. How to show/hide list menu options
    By frosty0 in forum HTML Programming
    Replies: 0
    Last Post: February 7th, 2004, 03:26 PM
  3. prevent duplicate entries in select menu
    By SeenGee in forum PHP Development
    Replies: 2
    Last Post: February 6th, 2004, 07:08 AM
  4. Replies: 2
    Last Post: January 27th, 2004, 03:34 PM
  5. select distinct from multiple tables
    By dmors in forum Database Management
    Replies: 1
    Last Post: January 9th, 2004, 01:56 AM

IMN logo majestic logo threadwatch logo seochat tools logo