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
[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
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[
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
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
[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
>
>
> 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
[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
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
9 matches
Mail list logo