Results 1 to 2 of 2

Thread: Listbox

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    7

    Listbox

    Hello,

    I have 2 listbox.
    The first one is the list of users that cant have acces to a page and the second one is user that can have acces to the page. What I want to do is

    Cant Can
    --------- ---------
    |User#1| >>> |User#3|
    |User#2| <<< |User#4|
    --------- ---------

    So when you click on <<< or >>> it adds the user youve selected in the different mysql table. With some javascript code, users would move between the 2 boxes.

    I would like to know how you can do that ?

    Thanks !
    Last edited by Geno; Jan 11th, 2005 at 02:01 PM.

  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    Re: Listbox

    Moving them between the boxes is a javascript problem, and I suggest you post there to do that part if you don't know how.

    Moving them from one table to another is not the most efficient way to achieve what you are trying to do with mysql. A better way would be to use an extra field in the table that is either a 1 or a 0. Then simply update that field depending on what box they are in when you submit the form.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

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



Click Here to Expand Forum to Full Width