hello,
I have a PHP/Javascript problem. If I want to make a multiple select
like this one:
$html .= "<td><selec t name='userid' onChange='chang euserinfo()' multiple
size='10'>";
$html .= "<option value=''>Select eer user</option>";
$html .= "<option value='1'>user 1</option>";
$html .= "<option value='2'>user 2</option>";
$html .= "<option value='3'>user 3</option>";
$html .= "<option value='4'>user 4</option>";
$html .= "<option value='5'>user 5</option>";
$html .= "<option value='6'>user 6</option>";
$html .= "</select>";
$html .= "</td>";
I can read this one out with javascript but accourding tot the PHP
manual I have to declare the select as follows to read it out in php:
$html .= "<td><selec t name='userid[]' multiple size='10'>";
and this is something that javascript does not want to swallow :'(
How can i make it so that both javascript and php can access the fields
and do their usefull stuff with it.
HELP MEEEEEEE :)
Greetz,
Ramses
I have a PHP/Javascript problem. If I want to make a multiple select
like this one:
$html .= "<td><selec t name='userid' onChange='chang euserinfo()' multiple
size='10'>";
$html .= "<option value=''>Select eer user</option>";
$html .= "<option value='1'>user 1</option>";
$html .= "<option value='2'>user 2</option>";
$html .= "<option value='3'>user 3</option>";
$html .= "<option value='4'>user 4</option>";
$html .= "<option value='5'>user 5</option>";
$html .= "<option value='6'>user 6</option>";
$html .= "</select>";
$html .= "</td>";
I can read this one out with javascript but accourding tot the PHP
manual I have to declare the select as follows to read it out in php:
$html .= "<td><selec t name='userid[]' multiple size='10'>";
and this is something that javascript does not want to swallow :'(
How can i make it so that both javascript and php can access the fields
and do their usefull stuff with it.
HELP MEEEEEEE :)
Greetz,
Ramses
Comment