Help with php & mySql [login page]

Hi

I have this login page, actually it works okay, everytime I enter username/password whether they are right or wrong, it works the way it should be.

The only problem is if you dont enter anything but hit the submit button, it will take you to that destination page which is adminpage.php but you still not logged in tho [which is a good thing]

Also one more thing, if you enter the wrong information instead of showing this text = “wrong username/password” it will take you to a blank white screen.

anyway heres the code.

if ($_POST[submit]) {

$query = "SELECT id, email, password, first_name, last_name FROM admin WHERE email = '$_POST[email]'";
$query_result = mysql_query($query);
$row = mysql_fetch_array($query_result);

if ($row[password] == $_POST[password]) { //-- password in database vs password entered
	
	//match, start sesssion
	
	session_start();
	header("Cache-control: private"); //IE 6 Fix 
	
	$user_id = $row[id];
	$name = "$row[first_name] $row[last_name]";
	$_SESSION[id] = $row[id];
	$_SESSION[name] = $name;
	header("Location: ../adminpage.php"); //-- forward to a particular page, followed by "exit;"
	exit;


	
} else {

	//wrong password
	//show error message

	$content .= "WRONG PASSWORD/EMAIL";
	
}

}
any ideas?

Thanks alot