I've got next situation:
I have multiple select boxes (that can select multiple choices) and i need that in php to be processed.
A code is next:
<select name="selectusers[]" multiple>
<option value="1">John</option>
<option value="2">Smith</option>
</select>
<select name="selectusers[]" multiple>
<option value="1">John</option>
<option value="2">Smith</option>
</select>
<input type="submit" value="Send" />
So now, in PHP I do the general foreach
<?php
foreach($select_users as $users){
...
}
?>
But each time I do foreach loop, and i print_r($select_users); inside of foreach, it gives me same result like:
Array([0]=>Array([0]=>30)[1]=>Array([0]=>33))
Array([0]=>Array([0]=>30)[1]=>Array([0]=>33))
What should I do?
Thank you.
</div>