I hope one of you can see what the heck is wrong with my code.
I was attempting to have a multiple select box and I know that you can use [] on the select name to convert to an array.
But when I submit the info, for some reason I can't figure out, I can't get anything from the variable using a for loop.
Right now I am just trying to print out the array on the same page just so I can see if it is working.
Here is the code....
<?php
if ($submit) {
for ($i=0; $i < sizeof($users[]); $i++) {
print "$users";
}
}
<form name="get_users" method = get action = getusers.phtml>
<select name="users[]" multiple size=10>
then all my users are listed here.
</select>
</form>
?>
Any advice anyone?