I haven't really worked hard on figuring this out, but I thought someone might know offhand.
I have a select multiple such as:
<SELECT SIZE=10 NAME=ot[areas] MULTIPLE>
<OPTION>A</OPTION>
<OPTION>q</OPTION>
<OPTION>w</OPTION>
<OPTION>e</OPTION>
<OPTION>r</OPTION>
<OPTION>t</OPTION>
<OPTION>y</OPTION>
<OPTION>u</OPTION>
<OPTION>i</OPTION>
<OPTION>o</OPTION>
<OPTION>p</OPTION>
<OPTION>s</OPTION>
</SELECT>
Note the name of the SELECT. I'm trying to do this with it, just for testing:
foreach ($_GET['ot[areas]'] as $area) { echo "$area"; }
But I am getting this error message, understandably:
Warning: Invalid argument supplied for foreach() in /usr/www/users/ourtown2/update/add_login.php on line 13
I just don't know what to do to fix it. Anyone know?
Thanks for the help,
Tom 🙂