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. select multiple='true' name='myselect' For PHP, use

[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. select multiple='true' name='myselect' option value='1'1/option option value='2'2/option /select so when this

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. hope

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. select multiple='true' name='myselect' option value='1'1/option option value='2'2/option /select so when this