sto cercando di creare una pagina di login cosi :
<html>
<head>
<title>login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="verifica.php">
<table width="75%" border="0">
<tr>
<td>username</td>
<td><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td>password</td>
<td><input name="pass" type="password" id="pass"></td>
</tr>
<tr>
<td colspan="2"> <div align="left">
<input type="submit" name="Submit" value="Invia">
</div></td>
</tr>
</table>
</form>
</body>
</html>
POI FACCIO LA PAGINA DI VERIFICA COSI'
<html>
<head>
<title>verifica</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
$username = $_POST["username"];
$pass = $_POST["pass"];
include("connessione.php");
$query = mysql_query ("SELECT * FROM utenti where username='$username' and password='$pass'");
$row = mysql_num_rows($query);
if($row > 0 ){
echo("accesso riuscito");
exit();
}else{
echo("accesso rifiutato");
exit();
}
?>
</body>
</html>
DOVE SBAGLIO VISTO CHE MI DA' SEMPRE ACCESSO RIFIUTATO ?