Monday 1 January 2018

php - syntax error, unexpected T_ELSE

Can you see any reason why I would be getting an
unexpected T_ELSE error? I must be
blind..




//Check
if form was submitted
if(isset($_POST['submit']))
{

//Form was submitted.
if($_POST['paypalemail'] != '');

{
//An email was submitted.
}
else

{

//There was nothing in the field. Tell them.
echo
"";
}
}

?>

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...