Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/08/2006, 20:17
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
login.php:
Código HTML:
<form aciont="check.php" method="post">
Usuario: <input type="text" name="user">
Pass: <input type="password" name="pass">
<input type="submit" name="enviar" value="Enviar">
</form> 
check.php:
Código PHP:
<?php
$user 
"usuario";
$pass "password";
$paginaOk "correcto.php";
$paginaNoOk "incorrecto.php";

if( ( 
$_POST['user'] == $user ) && ( $_POST['pass'] == $pass ) ) {
     
header"Location: $paginaOk" );
} else {
     
header"Location: $paginaNoOk" );
}
?>