0
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\prueba1\validoUsuario.php:16) in C:\AppServ\www\prueba1\validoUsuario.php on line 22
Ahora me tira ese error
codigo sin html de validarusuario.php
Código PHP:
<?php
session_start();
include("baseDeDatosSinTesteo.php");
$consulta= "Select count(*) as contador from usuarios where nombre='".$_POST["txtNombre"]."' and
contraseña='".$_POST["pwdContraseña"]."'";
$usuarios=mysql_query($consulta);
while ($elUsuario=mysql_fetch_array($usuarios)){
$tot =$elUsuario["contador"];
}
echo $tot;
if($tot<>0){
$_SESSION["esActivo"]="si";
header ("Location:web.php");
}else{
header ("Location:SinPermiso.php");
}
?>