Re: Form processing in PHP
| From: | Frank M. Kromann | Date: | Sat, 30 Jun 2001 05:12:08 +0000 |
| Subject: | Re: Form processing in PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8114@lists.php.net to get a copy of this message | ||
Hi,
If you are changing the name of the select item from name=miasta_bad to
name="miasta_bad[]" php will return all selected values in an array.
- Frank
> Hi,
>
> I have a little problem with processing a FORM's SELECT MULTIPLE field.
> I mark several position in form, but in result file I have only last
> selected.
> Here is a part of file:
>
> <FORM METHOD=post NAME="WybPosForm" ACTION="slownik_adresowy.php">
> <SELECT MULTIPLE NAME=miasta_bad SIZE=25>
> <OPTION VALUE=1>BIA£YSTOK </OPTION>
> <OPTION VALUE=14078>ALEKSANDROWO </OPTION>
> <OPTION VALUE=15>ALEKSANDRÓW KUJAWSKI </OPTION>
> <OPTION VALUE=17>ANDRYJANKI </OPTION>
> <OPTION VALUE=19>ANDRZEJEWO </OPTION>
> <OPTION VALUE=20>AUGUSTOWO </OPTION>
> ....
> </SELECT>
> <INPUT TYPE="RESET"><INPUT type=submit value="OK">
> </FORM>
>
> I check BIA£YSTOK, ANDRYJANKI and AUGUSTOWO but in variable
> $miasta_bad I have only value 20
>
> How process this form?
>
> Best regards,
> Mariusz Topczewski
>
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>