|
Posted by Andy Hassall on 09/07/06 18:26
On 7 Sep 2006 10:54:16 -0700, "Charles" <landemaine@gmail.com> wrote:
>I am trying the example of the book "Learning PHP5", here's an example
>that doesn't work here. It's a simple array sent from a form, and I
>want to display values sent, but if I select several meals from the
>form, only the last one is displayed:
>
><form method="POST" action="eat.php">
>
><select name="lunch[ ]" multiple>
There should be no spaces between the [ and ], else you end up with a single
key consisting of that many spaces, instead of an array of values.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|