processing post requests

From: Date: Sun, 21 Sep 2003 00:28:45 +0000
Subject: processing post requests
Groups: php.general 
Request: Send a blank email to php-general+get-163312@lists.php.net to get a copy of this message
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> 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!

« previous php.general (#163312) next »