Re: [PHP] Select multiple boxes

2003-01-21 Thread Chris Hewitt
John W. Holmes wrote: How does php know what suitable form data is? I guess it could look for multiple names in the GET or POST data. But then that would mean for every variable it goes to create, it would have to go and look if it's already created one by that name. If it did, erase the old

RE: [PHP] Select multiple boxes

2003-01-20 Thread Ford, Mike [LSS]
-Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: 18 January 2003 14:41 use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards -- that is a PHP

Re: [PHP] Select multiple boxes

2003-01-20 Thread Sean Burlington
Ford, Mike [LSS] wrote: -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: 18 January 2003 14:41 use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards --

RE: [PHP] Select multiple boxes

2003-01-20 Thread John W. Holmes
use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards -- that is a PHP urban myth (which, to my chagrin, I helped to propagate before a wiser head sent me to read said

Re: [PHP] Select multiple boxes

2003-01-20 Thread Sean Burlington
John W. Holmes wrote: use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard No, it does not break HTML standards -- that is a PHP urban myth (which, to my chagrin, I helped to propagate before a wiser head sent

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard therefore it is a Bad Thing (tm) but it does work. SELECT name=mySelect[] multi option name='1'Don't pick me/option option name='2'Pick me/option /select Selecting

RE: [PHP] Select multiple boxes

2003-01-18 Thread John W. Holmes
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.

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
To: Gregory Chagnon; [EMAIL PROTECTED] Subject: RE: [PHP] Select multiple boxes use [] in your select box name. When it comes back in the $_POST array you will have an array of options. It breaks HTML standard therefore it is a Bad Thing (tm) but it does work. SELECT name=mySelect[] multi option name

Re: [PHP] Select multiple boxes

2003-01-18 Thread Gregory Chagnon
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

RE: [PHP] Select multiple boxes

2003-01-18 Thread John W. Holmes
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

RE: [PHP] Select multiple boxes

2003-01-18 Thread Cal Evans
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