Al crear el login y comprobar contraseñas , debe crear cookie pero sale esto:
Ingresado como das....
Código:
Warning: Cannot modify header information - headers already sent by (output started at /home/rulz/public_html/conf.php:31) in /home/rulz/public_html/usuarios.php on line 38 Warning: Cannot modify header information - headers already sent by (output started at /home/rulz/public_html/conf.php:31) in /home/rulz/public_html/usuarios.php on line 39
Código:
Gracias! $pl=mysql_query("select * from usuarios where nombre='$nombre'"); while($row=mysql_fetch_array($pl)){ if($contrasena == $row[contrasena]){ echo" Ingresado como $nombre...."; setcookie('cmhipnombre',$nombre,time()+1296000); setcookie('cmhipcontrasena',$contrasena,time()+1296000); } else{echo'<br>'.$txt[ingresar].''.$form[ingresar_error_passwd].'';} }}