Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2012
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Populating secondary list from primary list

    I want to present my users with a list of 200 items.
    From that list, they pick 10 items.
    The item selected shows up in the secondary list.
    Which then creates their items into an array for a playlist.

    What's a good way of doing this?

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,903
    Thanks
    15
    Thanked 226 Times in 226 Posts
    Two ways come to mind. First, a couple of hundred check boxes. But a better way might be using a drop down menu to choose an item, then an 'Add this Item' button to add it to the playlist. You could add the item to a javascript array, when the array count reached 10 a notice would be given, you could make the array the value of a hidden input and submit it in a form, then make the playlist with php.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • #3
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,026
    Thanks
    23
    Thanked 588 Times in 587 Posts
    I like this method:
    http://www.johnwbartlett.com/cf_tips...cfm?TopicID=86
    Code is there. You can pick a random bunch of items and move em back and forth.
    I think you will need to code the 10 limit into it and assign items to an array, but this is a good start.

    But Suwannee_guy, anytime you are changing the HTML your looking at its done by javascript not php.
    Last edited by sunfighter; 10-23-2013 at 06:24 AM.
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

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