xyn Posted May 10, 2007 Share Posted May 10, 2007 UPDATED I've been getting this error. and i'm not sure how i can fix it :S I never came across it before; I think it could be the error bit. but as i cant do Smarty templates. i've tried to do it a different way. though I cant be sure... The error is on line 22; this line is... if(isset($_POST['password']))&&empty($_POST['password'])) my code is... if(!isset($_POST['submit'])) { include($tmpath."/headers.inc.php"); include($tmpath."/login.inc.php"); include($tmpath."/footers.inc.php"); } else { if(isset($_POST['username'])&&empty($_POST['username'])) { $e[] = "Username has been left blank."; } if(isset($_POST['password']))&&empty($_POST['password'])) { $e[] = "Password has been left blank."; } if(is_array($e)) { $errorshow = "<p><b>Error:</b>"; foreach($e as $k => $i) { $errorshow .= "-".$i."<br>"; } $errorshow .= "<br>Go <a href="Javascript:History.Back(-1);">Back</a>"; $errors = $errorshow; $errors .= include($tmpath."/errors.inc.php"); define("ERRORS", $errors); include($tmpath."/headers.inc.php"); include($tmpath."/login.inc.php"); include($tmpath."/footers.inc.php"); exit; } echo('more'); } Quote Link to comment https://forums.phpfreaks.com/topic/50785-solved-unexpected-t_boolean_and/ Share on other sites More sharing options...
zack45668 Posted May 10, 2007 Share Posted May 10, 2007 Here you go. if(isset($_POST['password'])&&empty($_POST['password'])) Quote Link to comment https://forums.phpfreaks.com/topic/50785-solved-unexpected-t_boolean_and/#findComment-249712 Share on other sites More sharing options...
xyn Posted May 10, 2007 Author Share Posted May 10, 2007 Thx. i didnt spot that lol. Quote Link to comment https://forums.phpfreaks.com/topic/50785-solved-unexpected-t_boolean_and/#findComment-249717 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.