Here, it comes up with this error "Invalid argument supplied for foreach() in J:\Xampp\xampp\htdocs\forms-1\next.php on line 28
I read somewhere that the variable it's checking isn't array ... it gets the $_POST vehicle from listbox with multiple selections.
I read somewhere that the variable it's checking isn't array ... it gets the $_POST vehicle from listbox with multiple selections.
Code: (php)
$vehicles=""; //line25
if (isset($_POST["vehicle"])) //line26
{$vehicles = "You chose: <br />"; //line27
foreach ($_POST["vehicle"] as $value) //line28
{$vehicles = $vehicles. $value . "<br />";} //line29
print $vehicles;} //line230



