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
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...
...
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
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...
...
4 matches
Mail list logo