http://poptutoring.com/test.php
The problem is that I can't receive the values from the selection box's at the bottom. Here's the code:
Code: Select all
$tutoring = mysql_real_escape_string(strip_tags($_POST['tutoring']));
foreach($tutoring as $value_t) {
echo $value_t;
}
if (is_array($tutoring)) {
echo "success";
}Code: Select all
Tutoring:<br /><select class="look" size="3" id='tutoring' name='tutoring[]' multiple><option value='One on One'>One on One</option><option value='One on One'>Group</option><option value='One on One'>Math & Physics Centers</option></select>
This script says:
and it doesn't give me a "success" saying its an array.Warning: Invalid argument supplied for foreach() in C:\AppServ\www\Projects\pop\test.php on line 207