[prev in list] [next in list] [prev in thread] [next in thread]
List: php-windows
Subject: Re: [PHP-WIN] Form processing in PHP
From: "Frank M. Kromann" <frank () frontbase ! com>
Date: 2001-06-30 5:12:08
[Download RAW message or body]
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%>
> <OPTION VALUE=1>BIAŁYSTOK </OPTION>
> <OPTION VALUE078>ALEKSANDROWO </OPTION>
> <OPTION VALUE>ALEKSANDRÓW KUJAWSKI </OPTION>
> <OPTION VALUE>ANDRYJANKI </OPTION>
> <OPTION VALUE>ANDRZEJEWO </OPTION>
> <OPTION VALUE >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
>
>
>
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic