Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/09/2009, 08:39
Avatar de xempro
xempro
 
Fecha de Ingreso: marzo-2007
Ubicación: Chile
Mensajes: 222
Antigüedad: 17 años, 1 mes
Puntos: 6
Respuesta: Validar usuario y contraseña

No coinciden las variables...

Tus inputs son:
Cita:
Usuario: <input type=text name=Usuario><br>
Contraseña: <input type=password name=Contraseña><br>
y tus $_POST son:
Cita:
if (!$_POST['correo'] || !$_POST['clave'])
Cita:
$consulta="select * from Usuarios where Usuario="".$_POST['correo']."" and Passwodr="".$_POST['clave'].""";

NOTA: para asegurarte que variables $_POST estás pasando puedes agregar esto...

Código PHP:
echo "<pre>";
print_r($_POST);
echo 
"</pre>"