I'm afraid that the way you want to do it isn't going to work. You can only retrieve the one selected value for a form element. However, you could work around it by associating the value with the id in a hidden input field, or you could store the values in a more easily accessible format (ie. a database table, or an INI file using the parse_ini_file() function -- very handy) and then simply select them in PHP again on the form handler.
The first way you might do something like this:
<select name="list">
<option value="one">one</option>
<option value="two">two</option>
</select>
<input type="hidden" name="one" value="foo" />
<input type="hidden" name="two" value="bar" />
Then you could simply associate the value, stored in $POST['list'], with the id, stored in $POST[$_POST['list']].
The second way, you could store them in a separate file then dynamically generate the select box, like this:
; id = value
foo = one
bar = two
<?php
$list = parse_ini_file ('list.ini');
foreach ($list as $id => $value) {
// display select box or handle form submission
}
?>
Hope this helps.
Cheers,
Lux