Results 1 to 2 of 2

Thread: add dynamic selection list in db

  1. #1
    Join Date
    Feb 2014
    Thanked 0 Times in 0 Posts

    Default add dynamic selection list in db

    Hi, i have a form with two select lists, one is populated with 4 options and one is empty. user clicking a button adds options in the empty list. The options are added with java script in the second list. Now, i need to insert this options into a database in separate columns (opt1, opt2, opt3, opt4).
    PHP Code:
    <select name="Category" multiple="multiple">
    option value="1">1</option>
    option value="2">2</option>
    option value="3">3</option>
    option value="4">4</option>
    input onclick="addOption_list()" ;="" value="Add" type="button"><!--with this button i add option in empty list----->
    select id="Subcateg" name="Subcateg" multiple="multiple"></select><!--this is the empty list where the options are added-----> 
    In the second list the options can be added in any order, the user can add one or all options and i need to insert in data base in this order.
    can someone help me?

  2. #2
    Join Date
    Feb 2014
    Thanked 0 Times in 0 Posts


    I think your almost at the point that you need to use sql.
    Do you have a form with the correct action, method, enctype if any and the sql to go with it?
    What else do you have?

Similar Threads

  1. Replies: 1
    Last Post: 01-20-2012, 05:27 PM
  2. Resolved Show/Hide content with multiple selection list
    By mmalik in forum JavaScript
    Replies: 2
    Last Post: 05-07-2009, 05:32 PM
  3. Style Sheet Switcher don't remember selection in drop down list
    By coolguy in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 11-30-2007, 02:21 PM
  4. Using value from a drop down list selection
    By mrtr33 in forum MySQL and other databases
    Replies: 1
    Last Post: 07-05-2007, 11:31 PM
  5. Display textbox based on selection from dropdown list
    By stevema4567 in forum JavaScript
    Replies: 11
    Last Post: 08-25-2006, 06:26 AM


Posting Permissions

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