Did you remember the [] on the select field's name? Otherwise it will
treat data as a scalar and constantly overwrite until the last selected
entry is reached.
Cheers,
Rob.
On Thu, 2003-09-04 at 16:39, Steve Goodman wrote:
> Hey all,
> I'm curious if anyone else has ever come across this problem
Hey all,
I'm curious if anyone else has ever come across this problem:
I have a multiple select box named 'chosen'. When it is submitted, only the
last option selected appears under $_POST['chosen'], when I print_r($_POST).
Any ideas?
Thanks in advance,
Steve
--
PHP General Mailing List (http://
Is imgList an array, and did you specify it as such in the form? Are you
foreach() through the array to get the contents?
-Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 12:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] multiple select box not
I have a select box that is filled with multiple values and when the user
clicks submit, it hightlights all the values in the select box and then
sends this to my PHP file.
I did a simple:
echo ($_POST["imgList"]);
to see what was happening and the only value being carried across is the
last val
[mailto:[EMAIL PROTECTED]]
> Subject: [PHP] Multiple select box and form submitting
>
> i've got a multiple select on a form and want to
> find out *all* selected values.
>
> the form looks like so:
>
>
> First
> Second
> Third
>
>
> when the form subm
i apologize in advance if the answer to my question is
glaringly obvious.
i've got a multiple select on a form and want to
find out *all* selected values.
the form looks like so:
First
Second
Third
when the form submits, $form['category'] is not
an array of selected values, but rather a sing
6 matches
Mail list logo