Cita:
Warning: Cannot modify header information - headers already sent by (output started at /home2/public_html/config.php:10) in /home2/public_html/entrar.php on line 12
Código PHP:
Ver original
<? include("config.php"); if($contrasena == $cnpass){ if($mant == 0){ echo "<script>document.location.href='home.php?ads=true';</script>"; }elseif(($mant == 1) && ($rango >=6)){ echo "<script>document.location.href='home.php?ads=true';</script>"; }else{ echo "No tienes el nivel de acceso requerido"; } }else{ echo "La contraseña es incorrecta"; } }else{ echo "Esta cuenta de correo no existe"; } ?>
PD: No me crea las cookies