Re: [PHP] Is there a way to get multiple values for a single input in a form submission?

2006-03-23 Thread Richard Lynch
On Tue, March 21, 2006 4:44 pm, mslemko wrote: > this is what I am trying to do: > > On a web form I might have a select input with multiple selections > enabled, however I want to have access to the list within PHP after > submission. > > For PHP, use name='myselect[]' Then PHP turns it into an

Re: [PHP] Is there a way to get multiple values for a single input in a form submission?

2006-03-21 Thread tedd
this is what I am trying to do: On a web form I might have a select input with multiple selections enabled, however I want to have access to the list within PHP after submission. 1 2 so when this is submitted, I can see in the $HTTP_RAW_POST_DATA that myselect is submitted twice... ...

Re: [PHP] Is there a way to get multiple values for a single input in a form submission?

2006-03-21 Thread Warren Vail
Set the name of your field in html to be; name="myselect[]" that way when the form is returned to you each selected value is returned to you, for example if you code $choices = $_POST["myselect"]; choices will be an array containing the actual values selected when the form is submitted. h

[PHP] Is there a way to get multiple values for a single input in a form submission?

2006-03-21 Thread mslemko
this is what I am trying to do: On a web form I might have a select input with multiple selections enabled, however I want to have access to the list within PHP after submission. 1 2 so when this is submitted, I can see in the $HTTP_RAW_POST_DATA that myselect is submitted twice... ...