tengo el siguente codigo
Código PHP:
<? include ("config.php");
$obj=new sast1com();
$nu=mysql_escape_string($_POST['utente']);
$ps=mysql_escape_string($_POST['password']);
if($nu==$obj->user){
if($ps==$obj->password){
$temput=$nu;
$temppass=$ps;
$_SESSION['temput']=$nu;
$_SESSION['temppass']=$ps;
//session_register("temput");
//session_register("temppass");
echo"<script language=javascript>";
echo"document.location.href='pannello.php'";
echo"</script>";
}
}
else{
echo"<script language=javascript>";
echo"document.location.href='errore.php'";
echo"</script>";
}
?>
alguna idea?
gracias por la ayuda