Ver Mensaje Individual
  #15 (permalink)  
Antiguo 29/05/2014, 21:57
Avatar de zetahosting
zetahosting
 
Fecha de Ingreso: octubre-2011
Mensajes: 119
Antigüedad: 12 años, 7 meses
Puntos: 2
Respuesta: "Notice: Undefined index" en Login

Es muy simple amigo,

El problema es que 'CLAVE' no tiene valor, tienes que pone lo siguiente:

$data['CLAVE']=(empty($data['CLAVE']) ? '' : $data['CLAVE']);
if ($data['CLAVE'] != $password) {
echo "Login incorrecto";
} else {
$query = "SELECT * FROM usuario WHERE NOMBRE_USUARIO = '$username'";
$stmt = $con->prepare($query);
$row = $stmt->fetchAll();
$_SESSION["s_username"] = $row['username'];
echo "Has
__________________
Excelente WebHosting -> www.zetahosting.net
[email protected]
Twitter: @zetahosting