Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003

    Unanswered: JavaScript + PHP question..


    I've got a list of names in a MySQL table. I output these names to a multi select box using PHP. Now i'd like to be able to re-arrange those names in the list by first selecting a name with the mouse, and then use either a button named "Move up in list" or one named "Move down in list". I have no idea on how to do this though, and I've tried finding a script on the 'net that does something similiar, with no luck. So now I turn to you guys =).

    Also, after having re-arranged those names, I'd like to be able to submit the form and pass the list of names back to PHP so I can update the table in MySQL.

    Any help would be greatly appreciated!

  2. #2
    Join Date
    Feb 2002
    San Francisco, CA
    Just my 5p but I try to avoid using client side scripting (cross brower problems, older browers, phones etc). I'd just use a form and an array and do it server side.

Posting Permissions

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