RE: [PHP] mutliple select form not passing multiple values

2004-02-12 Thread Ford, Mike [LSS]
On 11 February 2004 21:39, Ben Ramsey wrote: Ah-ha! I missed that, and I always do. Let's hope I don't anymore. While we're on the subject, why is PHP set up this way? Why can't it just add the elements to the array automatically, since adding the square brackets to one's HTML form name is

[PHP] mutliple select form not passing multiple values

2004-02-11 Thread Ben Ramsey
I'm running PHP 5.0b3, so I'm not sure whether this is an issue with the version of PHP I'm running. I've got a select field in a form that is allowing multiple selects: select name=modules size=10 multiple=multiple id=modules style=height: 150px; option value=2 selected=selectedBanner

Re: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Richard Davey
Hello Ben, Wednesday, February 11, 2004, 9:22:33 PM, you wrote: BR Am I doing something wrong? Yup :) It needs to be: select name=modules[] ... Note the change in name from modules to modules[] -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General

Re: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Ben Ramsey
Ah-ha! I missed that, and I always do. Let's hope I don't anymore. While we're on the subject, why is PHP set up this way? Why can't it just add the elements to the array automatically, since adding the square brackets to one's HTML form name is not a standard practice? Richard Davey wrote:

Re[2]: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Richard Davey
Hello Ben, Wednesday, February 11, 2004, 9:38:38 PM, you wrote: BR Ah-ha! I missed that, and I always do. Let's hope I don't anymore. BR While we're on the subject, why is PHP set up this way? Why can't it BR just add the elements to the array automatically, since adding the BR square