Jump to content

[SOLVED] unexpected T_BOOLEAN_AND


xyn

Recommended Posts

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

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.