You do if you want to select multiple values from a select element. Otherwise, you can only select one.

Rick Emery wrote:
You don't even need the word "multiple"
----- Original Message ----- From: "John Nichel" <[EMAIL PROTECTED]>
Sent: Tuesday, October 29, 2002 9:27 AM
Subject: Re: [PHP] Select values in an array???

Change the name of your select field to "select[]"

<select name="whatever[]" multiple>

Craig wrote:

I am trying to pass the values of a select box which can have more than one
value to a page.

In the address bar of the page i have sent to, I have

on the page i have
echo $select

but only the last item (item6) is being displayed on the page

how do i create an array of all the items in a list on the page?

any help would be gratefully appreciated


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to