Posted April 12 '09 at 12:44 PM
Posts: 13
hello guys im writting a php block of code and for some reason its not reading the last else statement that says NULL
for ($i = 0; $i <= $count; $i++)
{
echo $i;
echo $_POST['Race'] [$i] . "<br>" ;
if ($_POST['Race'] [$i] == "Black")
{
echo "you are Black";
}else if ($_POST['Race'] [$i] == "White")
{
echo "you are white";
}else if ($_POST['Race'] [$i] == "Hispanic")
{
echo "you are HIspanic";
} else if ($_POST['Race'] [$i] == "Asian")
{
echo "you are Asian";
}
else if ($_POST['Race'] == NULL){
echo "you are an alien";
}
}
any tips?