Jump to content

If Statement Syntax Error


Bopo

Recommended Posts

Hi

 

I need keep getting unexpected ')' on the following statement, I have both added and removed brackets, but I still can't get it working, help appreciated.

 

<?php  

if(empty($_POST['author']) && empty($_POST['title']) && empty($_POST['post']))) {
die('Please fill in all required fields');
}

?>

Link to comment
https://forums.phpfreaks.com/topic/150521-if-statement-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.