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

    Join Date
    Mar 2000
    Posts
    1
    Rep Power
    0
    Hello.

    I have an HTML form with multiple options that I would like to input into a MySQL database as a SET. When the form is submitted, the data is sent as Variable=1&Variable=2&Variable=3, etc, while MySQL appears to want it submitted as Variable=1,2,3. Is there a way to make this work?

    Thank you!
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    $newvariable="$variable1,$variable2,$variable3";

    If you are unsure how many will be in the original set you'd have to concatenate dynamically.

Similar Threads

  1. LIST/MENU form element with multiple selection
    By acos in forum PHP Development
    Replies: 2
    Last Post: February 17th, 2004, 04:54 PM
  2. Multiple emails in form submission
    By LBeans in forum ASP Programming
    Replies: 1
    Last Post: February 3rd, 2004, 08:18 PM
  3. Question About Kernel Recompile
    By jcridge in forum BSD Help
    Replies: 3
    Last Post: November 8th, 2003, 09:40 AM
  4. Replies: 3
    Last Post: November 3rd, 2003, 08:37 PM
  5. multiple attachments in an email sent from form submission
    By dunstan_orchard in forum PHP Development
    Replies: 0
    Last Post: July 3rd, 2002, 07:49 AM

IMN logo majestic logo threadwatch logo seochat tools logo