<?php
$sessionTotal = 10;
for($initial = 1; $initial <= $sessionTotal ; $initial++){
echo '<input type="text" name="menuItems" size="20" /><br /><br/>';
}
//I have a if statement here checking if the submit button isset, yada yada, after I press the submit button, it returns this error -> Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\yada\yada-yada.php on line 43
foreach($_POST['menuItems'] as $value)
{
echo $value;
}
?>
It will echo $value after it is submitted. I have a if statement checking if the submit button isset, yada yada, after I press the submit button, it returns this error -> Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\yada\yada-yada.php on line 43