Ver Mensaje Individual
  #7 (permalink)  
Antiguo 03/11/2007, 00:31
franco190453
 
Fecha de Ingreso: abril-2006
Mensajes: 1.128
Antigüedad: 18 años, 11 meses
Puntos: 33
Re: Confusion con IF y ELSEIF

iarrieta:
Yo lo haria asi:
if($passN == "") {
header("Location: no_pass.html");
}
if($row["password"] == $passN) {
header("Location: index.php");
} else {
header("Location: wrong_pass.html");
}
RESUMEN: SI EL PASSWORD ES "" O NADA, LO MANDA
A NO_PASS.HTML SI EL PASSWORD ES CORRECTO LO MANDA
A LA INDEX.PHP Y SI ES INCORRECTO LO MANDA A WRONG_PASS.HTML
Saludos
Y espero te ayude
Franco