when i try to access this login page..an empty page open...please help with this coding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Latest</title>
</head>
<body>
<?php
include("db.php");
if (isset($_POST["submit"]))
{
$username=$_POST["username"];
$password=$_POST["password"];
$query="select * from latest where username='$username' && password='$password'";
$query1=mysql_query($query);
if(mysql_num_rows($query1)>0)
{?>
<font color="#FF0000" size="+4"><b>
<?php
echo "welcome";
echo ($username);
}
else
{
?>
<center>
<table align="center" border="2">
<form enctype="multipart/form-data" action="<?php $_SERVER['PHP_SELF'] ?>" method="get">
<tr><td></td></tr>
<tr><td>Enter Username</td>
<td><input type="text" name="username" />
</td></tr>
<tr><td>Enter Password</td>
<td><input type="password" name="password" /></td>
</tr>
<tr><td>Submit</td><td><input type="submit" value="submit" name="submit"/></td></tr>
</form>
<?php } } ?>
</table>
</center>
</body>
</html>