|
-
Jan 11th, 2005, 01:57 PM
#1
Thread Starter
New Member
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.
-
Jan 13th, 2005, 11:23 AM
#2
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|