<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento senza titolo</title>

<?php






$login=$_POST['login'];
$psw=$_POST['psw'];

$query="select * from setting where login='$login' && psw='$psw'";
$rs=mysql_query($query) or die (mysql_error());
if($row = mysql_fetch_array($rs)){
$ruolo=$row['ruolo'];
}


//header("Location: "$ruolo. ".php");

?>

</head>

<body>

<form action="index.php" method="post">

<input type="text" name="login" value="" size="12" maxlength="12" />





<input type="password" name="psw" value="" size="12" maxlength="12" />




<input type="submit" value="entra" />

</form>
</div>


</body>
</html>




La connessione al db si effettua traminte un file che
in questo momento nn ho incluso