Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
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=item1select=item2select=item3select=item4select=item5select=item6

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







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
You don't even need the word multiple
- Original Message - 
From: John Nichel [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]
Cc: [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
 select=item1select=item2select=item3select=item4select=item5select=item6
 
 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
 
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
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]
To: Craig [EMAIL PROTECTED]
Cc: [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
select=item1select=item2select=item3select=item4select=item5select=item6

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












--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
I've used it without multiple many times
- Original Message - 
From: John Nichel [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
 To: Craig [EMAIL PROTECTED]
 Cc: [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
select=item1select=item2select=item3select=item4select=item5select=item6

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



 
 
 
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread Craig
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 [EMAIL PROTECTED] wrote in message
news:05e401c27f60$52399a90$0500a8c0;honeybee...
 I've used it without multiple many times
 - Original Message -
 From: John Nichel [EMAIL PROTECTED]
 To: Rick Emery [EMAIL PROTECTED]
 Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
  To: Craig [EMAIL PROTECTED]
  Cc: [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

select=item1select=item2select=item3select=item4select=item5select=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
 
 
 
 
 
 
 







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
http://www.php.net/manual/en/ref.array.php

Craig wrote:

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 [EMAIL PROTECTED] wrote in message
news:05e401c27f60$52399a90$0500a8c0;honeybee...


I've used it without multiple many times
- Original Message -
From: John Nichel [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]
Cc: [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


select=item1select=item2select=item3select=item4select=item5select=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




















--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread @ Edwin
Hello,

Rick Emery [EMAIL PROTECTED] wrote:
[snip]
 I've used it without multiple many times
[/snip]

Of course. But, John was correct--you can only choose one.
UNLESS you use multiple, you won't be able to select multiple
values ;)

What seems to be the problem here... html? :)

- E


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
Then you were not able to select multiple values.  If you don't include 
the multiple, it will only allow you to select one value.

Rick Emery wrote:
I've used it without multiple many times
- Original Message - 
From: John Nichel [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]
Cc: [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
select=item1select=item2select=item3select=item4select=item5select=item6

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


















--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
I HAVE selected multiple items without including MULTIPLE.
- Original Message - 
From: John Nichel [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:54 AM
Subject: Re: [PHP] Select values in an array???


Then you were not able to select multiple values.  If you don't include 
the multiple, it will only allow you to select one value.

Rick Emery wrote:
 I've used it without multiple many times
 - Original Message - 
 From: John Nichel [EMAIL PROTECTED]
 To: Rick Emery [EMAIL PROTECTED]
 Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]
Cc: [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
select=item1select=item2select=item3select=item4select=item5select=item6

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







 
 
 
 
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
I HAVE selected multiple items without including MULTIPLE.

The following link displays a form in which there are multiple SELECTS with the same 
name.
Upon processing the form on submit, I do retrieve all selected values, not just the 
last.
To check for yourself, open the link and view source.

Yes, this page works...

http://www.preferred-pet.com/volunteer/volunteer.php

- Original Message -
From: John Nichel [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:54 AM
Subject: Re: [PHP] Select values in an array???


Then you were not able to select multiple values.  If you don't include
the multiple, it will only allow you to select one value.

Rick Emery wrote:
 I've used it without multiple many times
 - Original Message -
 From: John Nichel [EMAIL PROTECTED]
 To: Rick Emery [EMAIL PROTECTED]
 Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]
Cc: [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
select=item1select=item2select=item3select=item4select=item5select=item6

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

















--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Select values in an array???

2002-10-29 Thread Ford, Mike [LSS]
 -Original Message-
 From: Rick Emery [mailto:remery;emeryloftus.com]
 Sent: 29 October 2002 16:15
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Select values in an array???
 
 
 I HAVE selected multiple items without including MULTIPLE.
 
 The following link displays a form in which there are 
 multiple SELECTS with the same name.
 Upon processing the form on submit, I do retrieve all 
 selected values, not just the last.
 To check for yourself, open the link and view source.
 
 Yes, this page works...
 
 http://www.preferred-pet.com/volunteer/volunteer.php

I'm sure it does, but it doesn't have any SELECTs on it, never mind SELECT MULTIPLE.

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread @ Edwin
Hello,

Rick Emery [EMAIL PROTECTED] wrote:
 I HAVE selected multiple items without including MULTIPLE.

 The following link displays a form in which there are multiple SELECTS
with the same name.
 Upon processing the form on submit, I do retrieve all selected values, not
just the last.
 To check for yourself, open the link and view source.

 Yes, this page works...

 http://www.preferred-pet.com/volunteer/volunteer.php


Interesting. But I don't see any SELECTS there. Perhaps you're talking about
CHECKBOXES?

CHECKBOXes are NOT SELECTs ;)

- E

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread Rick Emery
Edwin, you are CORRECT.  I had a brain-fart.

I stand before you all, humbled

Round of beer for everyone in the house

cheers

rick- Original Message - 
From: @ Edwin [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 10:25 AM
Subject: Re: [PHP] Select values in an array???


Hello,

Rick Emery [EMAIL PROTECTED] wrote:
 I HAVE selected multiple items without including MULTIPLE.

 The following link displays a form in which there are multiple SELECTS
with the same name.
 Upon processing the form on submit, I do retrieve all selected values, not
just the last.
 To check for yourself, open the link and view source.

 Yes, this page works...

 http://www.preferred-pet.com/volunteer/volunteer.php


Interesting. But I don't see any SELECTS there. Perhaps you're talking about
CHECKBOXES?

CHECKBOXes are NOT SELECTs ;)

- E



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
Look, I'm not trying to start a flame war or anything, but you CANNOT 
select MULTIPLE items from a select element without using multiple in 
the tag.  I looked at your link, and it doesn't have any select 
elements, much less multiple select elements.  Prehaps you're confusing 
checkbox elements with select elements.  Take a look here for multiple 
select elements

http://jobsearch.monster.com/

Rick Emery wrote:
I HAVE selected multiple items without including MULTIPLE.

The following link displays a form in which there are multiple SELECTS with the same name.
Upon processing the form on submit, I do retrieve all selected values, not just the last.
To check for yourself, open the link and view source.

Yes, this page works...

http://www.preferred-pet.com/volunteer/volunteer.php

- Original Message -
From: John Nichel [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:54 AM
Subject: Re: [PHP] Select values in an array???


Then you were not able to select multiple values.  If you don't include
the multiple, it will only allow you to select one value.

Rick Emery wrote:


I've used it without multiple many times
- Original Message -
From: John Nichel [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: Craig [EMAIL PROTECTED]; [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
To: Craig [EMAIL PROTECTED]
Cc: [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
select=item1select=item2select=item3select=item4select=item5select=item6

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



















--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread John Nichel
*raises glass*

Happens to the best of us.  You should have seen my confusion on a linux 
mailing list last night when I was trying to figure out bind9.  :)

Rick Emery wrote:
Edwin, you are CORRECT.  I had a brain-fart.

I stand before you all, humbled

Round of beer for everyone in the house

cheers

rick- Original Message - 
From: @ Edwin [EMAIL PROTECTED]
To: Rick Emery [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 10:25 AM
Subject: Re: [PHP] Select values in an array???


Hello,

Rick Emery [EMAIL PROTECTED] wrote:

I HAVE selected multiple items without including MULTIPLE.

The following link displays a form in which there are multiple SELECTS


with the same name.


Upon processing the form on submit, I do retrieve all selected values, not


just the last.


To check for yourself, open the link and view source.

Yes, this page works...

http://www.preferred-pet.com/volunteer/volunteer.php




Interesting. But I don't see any SELECTS there. Perhaps you're talking about
CHECKBOXES?

CHECKBOXes are NOT SELECTs ;)

- E







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select values in an array???

2002-10-29 Thread @ Edwin
fish 'n chips on me :)

Good job there--volunteers are great!

- E

Rick Emery [EMAIL PROTECTED] wrote:

 Edwin, you are CORRECT.  I had a brain-fart.

 I stand before you all, humbled

 Round of beer for everyone in the house

 cheers

 rick- Original Message -
 From: @ Edwin [EMAIL PROTECTED]
 To: Rick Emery [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, October 29, 2002 10:25 AM
 Subject: Re: [PHP] Select values in an array???


 Hello,

 Rick Emery [EMAIL PROTECTED] wrote:
  I HAVE selected multiple items without including MULTIPLE.
 
  The following link displays a form in which there are multiple SELECTS
 with the same name.
  Upon processing the form on submit, I do retrieve all selected values,
not
 just the last.
  To check for yourself, open the link and view source.
 
  Yes, this page works...
 
  http://www.preferred-pet.com/volunteer/volunteer.php
 

 Interesting. But I don't see any SELECTS there. Perhaps you're talking
about
 CHECKBOXES?

 CHECKBOXes are NOT SELECTs ;)

 - E



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php