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'); } 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'])) 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. 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
Archived
This topic is now archived and is closed to further replies.