Bopo Posted March 22, 2009 Share Posted March 22, 2009 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 More sharing options...
MasterACE14 Posted March 22, 2009 Share Posted March 22, 2009 <?php if(empty($_POST['author']) && empty($_POST['title']) && empty($_POST['post'])) { die('Please fill in all required fields'); } ?> 1 extra parenthesis after $_POST['post'] Regards, ACE Link to comment https://forums.phpfreaks.com/topic/150521-if-statement-syntax-error/#findComment-790621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.