1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Rep Power
    Here is my problem, I'm creating a page that includes check boxes that are pulled from a MySQL database. the user should then select which boxes they want, and then the values should be wrote back to the DB. however when the check boxes are returned they are all returned as the same value name, choice =1&22&choice=3%22 and so on. how can I parse this so that I can store the choices in the DB?

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Rep Power
    In the code, make your checkboxes like so...

    <input type=checkbox name=choice[n]>

    where "n" is your array index.

    This will then be passed into your script as an array.

    PHP, Perl, SQL Programming at http://www.mentalobjects.com

Similar Threads

  1. Pulling individual checkbox requests into database
    By techwreck in forum ASP Programming
    Replies: 1
    Last Post: February 17th, 2004, 12:06 PM
  2. Insert multiple records into database
    By bamblimas in forum PHP Development
    Replies: 3
    Last Post: February 12th, 2004, 10:19 AM
  3. sending multiple variables to a function
    By myrrdan in forum Visual Basic Programming
    Replies: 2
    Last Post: February 3rd, 2004, 02:07 PM
  4. How to pass multiple url variables
    By yoz in forum HTML Programming
    Replies: 2
    Last Post: January 28th, 2004, 10:21 AM
  5. Replies: 3
    Last Post: January 21st, 2004, 12:05 AM

IMN logo majestic logo threadwatch logo seochat tools logo