Hi,
I've got stuck on a little form problem.
<b>Background</b>:
I have the need to do something like this in my form:
http://www.bjorn3d.com/temp/test.php
(I found it easier to show than to try to explain :-))
The script works fine. However - there is a small problem when I try to access the values selected.
<b>The Problem</b>
I found out that in PHP you can access multiple selected entries in a list by naming the <select>-list like an array (for instance "fields[]". Then you can pick up all selected values via a code like:
foreach($fields as $value)
etc.
However ... I can't name the select-list "fields[]". I get a javascript-error. If I name it "fields" then it no longer is an array and thus I can't get anything else than the last selected value out of $fields......
Anyone who can solve my dilemma?
Thanks in advance
/Björn