here is my form page called login.php
<!-- LOGIN.PHP -->
<?php
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns="http://www.w3.org/1999/xhtml">";
echo "<head>";
echo "<meta name="keywords" content="chat,free,pics,photos,videos,myspace"/>";
echo "<meta name="description" content="Login to Chillblock."/>";
echo "<title>Chillblock | Login</title>";
echo "<link href="css/122538344.css" rel="stylesheet" type="text/css" />";
echo "</head>";
echo "<body>";
echo "<h3>Login</h3>";
echo "<form action="ucheck.php" method="GET">";
echo "
";
echo "Username:
";
echo "<input name="u" type="text" size="15" maxlength="20"/>
";
echo "Password:
";
echo "<input name="p" type="text" size="15" maxlength="20"/>
";
echo "<input name="spy" type="hidden" value="1"/>";
echo "<input type="submit" class="submitter" value="Login"/>
";
echo "
";
echo "</form>";
echo "
";
echo "<a href="signup.php">Need an Account [?]</a>
";
echo "<a href="forget.php?ac=pass">Forget your Password [?]</a>";
echo "
";
echo "";
echo "Chillblock © 2010 All Rigths Reserved";
echo "";
echo "</body>";
echo "</html>";
?>
and the other page that shows whether the stuffs are right or wrong
<!-- UCHECK.PHP -->
<?php
include("x.php");
include("876con.php");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns="http://www.w3.org/1999/xhtml">";
echo "<head>";
echo "<meta name="keywords" content="chat,free,pics,photos,videos,myspace"/>";
echo "<meta name="description" content="Mobile community where you can meet people, chat, share pics and videos and play games on your cell phone."/>";
echo "<title>Chillblock | Meet People</title>";
echo "<link href="css/122538344.css" rel="stylesheet" type="text/css" />";
echo "</head>";
echo "<body>";
if ($_GET['spy']=='1')
{
$u = $_GET["u"];
$p = $_GET["p"];
}
echo "
";
$n = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE username='".$u."'"));
if($n[0]==0)
{
echo "Username is Incorrect<a href="login.php">Try Again</a>Chillblock © 2010 All Rigths Reserved";
$s = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE username='".$u."' AND password='".$p."'"));
}else{
if($s[0]==0)
{
echo "Password is Incorrect<a href="login.php">Try Again</a>Chillblock © 2010 All Rigths Reserved";
}else{
$thelogin = $u;
$sid = $unick.$mytime.$p;
$ts = md5($sid);
$x = "&k=".$ts;
mysql_query("update users set ts ='$ts' where username='$thelogin'");
echo "Welcome $u
";
echo "<a href="home.php?$x&$u">Continue...</a>
";
}
}
echo "
";
echo "</body>";
echo "</html>";
?>
tell me if you see the error there please cause all am getting it username is incorrect and password is incorrect!