I'm having problems with a multiple item select box. It's weird because I've done this without any problems in the past (it might be a configuration issue).
Right now, I'm debugging to try to figure out what's going on but I'm stumpted. Here's the info:
Form Field as cut from post-rendered source:
<select name="CompanyLogins[]" size="5" multiple id="CompanyLogins" >
<option value='2_8886252'>John Doe</option>
<option value='4_15747833'>Brian Jackson</option>
<option value='6_3962892'>Jane Doe</option>
</select>
Now for debugging, I'm using the following code to output the information received on the PHP side
echo gettype($_POST['CompanyLogins'])."<br>";
echo $_POST['CompanyLogins'] . "<br>";
echo $_POST['CompanyLogins'][0] . "<br>";
echo $_POST['CompanyLogins'][1] . "<br>";
echo $_POST['CompanyLogins'][2] . "<br>";
echo $_POST['CompanyLogins'][0][0] . "<br>";
All the items in the select box were selected before submitting, and this is the output that I get:
string
Array
A
r
r
This shows that what's being received is a string with the value "Array". I'm using IE6 (latest), and have also tested with Mozilla with the same results.
Any ideas?
THanks for any thoughts.
Jeff