What you are describing is a "2 List Mover". PHP is a server-side language and as such knows nothing about what is going on on the client. Therefore you have limited options. My favorite is :
In your form's onSubmit() put code to load all the values into a hidden field. (Assuming you have defined the hidden field) <hidden name="StoreStuffhere"> in your JavaScript put things like document.mainForm.storeStuffHere.value += "storeStuffHere[1]='Value1'"; document.mainForm.storeStuffHere.value += "storeStuffHere[2]='Value2'"; document.mainForm.storeStuffHere.value += "storeStuffHere[3]='Value3'"; Then, when the form is submitted use: parse_str($_POST['storeStuffHere']); This will create the array storeStuffHere with the 3 values. HTH, =C= * * Cal Evans * Stay plugged into your audience. * http://www.christianperformer.com * -----Original Message----- From: Gregory Chagnon [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 18, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Select multiple boxes The problem is I have 2 seelect boxes...it's for creating a user and adding them to a list of available groups...so I have one select box that is initially empty called memberOf and another box that has all of the available groups listed in it called availableGroups. I have a script that can move items back and forth and when the form is submitted I want to be able to get all the items that are in the memberOf box..anyh ideas on how to to this? THanks. -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 000501c2bf01$46464cc0$7c02a8c0@coconut">news:000501c2bf01$46464cc0$7c02a8c0@coconut... > > Is there any way to get all of the elements in a SELECT MULTIPLE box, > not > > just the ones that are selected? Thanks! > > No. You create the box, so you should know all of the possible values. > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php