Re: processing post requests
| From: | andu | Date: | Sun, 21 Sep 2003 01:21:25 +0000 |
| Subject: | Re: processing post requests | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163322@lists.php.net to get a copy of this message | ||
On Sat, 20 Sep 2003 17:28:45 -0700
Vadim Bendebury <moosor@comcast.net> wrote:
> The web page has a form with a following element in it:
>
> <select multiple size="4" name="city">
> <option selected value=0>no preference</option>
> <option value=2>Paris</option>
> <option value=1>London</option>
> <option value=3>Madrid</option>
> </select>
<select multiple size="4" name="city[]">
<option selected value=0>no preference</option>
<option value=2>Paris</option>
<option value=1>London</option>
<option value=3>Madrid</option>
</select>
>
> The intention is to be able to pick multiple cities. However, when the
> request arrives on the server, the $_POST array includes just the one
> last pick, no matter how many options are highligted when the "submit"
> button is hit.
>
> What's the deal - is the an HTML code problem or PHP problem? Is it at
> all possible to have multiple choices derived from this kind of form
> element?
>
> Thanks in advance!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
____
Regards, Andu Novac