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