Code:
$ModelMFR[] = $_POST['ModelMfr'];
print_r($ModelMFR);
$Fail = PrintOrError($ModelMFR[$i],$Fail);
function PrintOrError($Print,$Fail){
$Print = stripslashes($Print);
if($Print == ""){
echo'<b><font color=red> ERROR </font></b>';
$Fail++;
}
else
print($Print);
return $Fail;
}
outputs:
Array ( [0] => Array ( [0] => Dell [1] => Dell [2] => Dell [3] => Dell ) ) //from print_r
Model Manufacturer: Array //from PrintOrError
My PrintorError works fine with all the other array values just not thsi one. Any ideas?