leke Posted January 12, 2012 Share Posted January 12, 2012 Trying to validate a form for empty input using empty() but when I introduced it to my code, I get the error... Fatal error: Call to undefined function empty() in /srv/disk1/940225/www/domain.co.cc/contact_db/sanitize.php on line 13 Here is where I introduced it... $message = $_POST['message']; if( !isset($message) || empty($message) ) { ... What am I doing wrong here? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/254868-fatal-error-with-empty/ Share on other sites More sharing options...
leke Posted January 12, 2012 Author Share Posted January 12, 2012 Ok, sorry just realised I have a syntax error there. I now get a T Boolean error, but I should be able to figure out why now. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/254868-fatal-error-with-empty/#findComment-1306822 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.