Re: Select values in an array???
| From: | Craig | Date: | Tue, 29 Oct 2002 15:36:35 +0000 |
| Subject: | Re: Select values in an array??? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121877@lists.php.net to get a copy of this message | ||
I have changed the select to slect[] but the next page displays array
how do i display each individual select item in a list
ie
you have selected
item2
item4
item5
.
.
.
.
"Rick Emery" <remery@emeryloftus.com> wrote in message
news:05e401c27f60$52399a90$0500a8c0@honeybee...
> I've used it without "multiple" many times
> ----- Original Message -----
> From: "John Nichel" <jnichel@by-tor.com>
> To: "Rick Emery" <remery@emeryloftus.com>
> Cc: "Craig" <craig@sitedesign.net>; <php-general@lists.php.net>
> Sent: Tuesday, October 29, 2002 9:33 AM
> Subject: Re: [PHP] Select values in an array???
>
>
> 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" <jnichel@by-tor.com>
> > To: "Craig" <craig@sitedesign.net>
> > Cc: <php-general@lists.php.net>
> > 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
>
>>select=item1&select=item2select=item3&select=item4select=item5&select=item
6
> >>
> >>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
> >>
> >>craig
> >>
> >>
> >>
> >
> >
> >
> >
>
>
>
>