Ooh, how about that idiotic thing we came across the other day? In PHP, you can't get the form input from this HTML multi-select list:
Code:
<select name="foo" multiple> <option>abc
<option>def
<option>ghi
</select>
You'll only get either the last (or the first, I don't remember which) item selected, even though it is a MULTI-select.
You instead have to do something idiotic:
Code:
<select name="foo[]" multiple> <option>abc
<option>def
<option>ghi
</select>
Notice the [] after the name. But then, your input is just 'foo', not 'foo[]'. Am I the only one who thinks that is just plain dumb?
And they try to say PHP is better
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com