Re: [PHP] multiple selects and $_POST['vars'] MORE

2002-06-06 Thread Chris Knipe
he manual again... :) - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Jay Blanchard" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 7:47 PM Subject: RE: [PHP] multiple selects and $_POST['vars'] MORE

RE: [PHP] multiple selects and $_POST['vars'] MORE

2002-06-06 Thread Jay Blanchard
[snip] This is not how they work, the name goes under not within . And as others have suggested, using an array is key here: name="bleh[]". [/snip] You're right, my bad...just fired off a reply quickly without reading thoroughly. I was too engrossed in a lengthy code bit about security. I shoul

Re: [PHP] multiple selects and $_POST['vars']

2002-06-06 Thread Chris Knipe
Thanks everyone!! Appreciate it - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Chris Knipe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 7:18 PM Subject: Re: [PHP] multiple selects and $_POST[&#x

RE: [PHP] multiple selects and $_POST['vars'] MORE

2002-06-06 Thread Philip Olson
This is not how they work, the name goes under not within . And as others have suggested, using an array is key here: name="bleh[]". http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple Regards, Philip Olson On Thu, 6 Jun 2002, Jay Blanchard wrote: > [snip] > The value select

RE: [PHP] multiple selects and $_POST['vars']

2002-06-06 Thread Ray Hunter
Or you can added the bleh as an array... example: Thank you, RAY HUNTER -Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 5:56 AM To: [EMAIL PROTECTED] Subject: [PHP] multiple selects and $_POST['vars'] Lo all, How do

RE: [PHP] multiple selects and $_POST['vars'] MORE

2002-06-06 Thread Jay Blanchard
[snip] The value selected is now in $a_name [/snip] Or $_POST['a_name'] HTH! Jay "Give a man a program, frustrate him for a day. Teach a man to program, frustrate him for a lifetime." "It's hip to snip!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] multiple selects and $_POST['vars']

2002-06-06 Thread 1LT John W. Holmes
> > > 1 > 2 > 3 > 4 > 5 > > 1 2 3 4 5 Notice the [] on the name, telling PHP it's an array. Then, to get the items selected, it will be in $_POST['bleh'], which is an array. So, $_POST['bleh'][0] will be the first one selected, et

RE: [PHP] multiple selects and $_POST['vars']

2002-06-06 Thread Jay Blanchard
[snip] 1 2 3 4 5 [/snip] Change this like follow; 1 2 3 4 5 The value selected is now in $a_name HTH! Jay "Give a man a program, frustrate him for a day. Teach a man to program, frustrate him for a lifetime." -- PHP General Mailing Li

[PHP] multiple selects and $_POST['vars']

2002-06-06 Thread Chris Knipe
Lo all, How do you manage multiple selects and the data returned by the form? All my attempts at doing this, only returned one variable from the selected options, not all of them?? My test... 1 2 3 4 5 blah.php: echo $_POST['bleh']; $_POST['bleh'] would only have