Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.