Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/04/2011, 23:24
gfeduardo15
 
Fecha de Ingreso: abril-2011
Mensajes: 17
Antigüedad: 13 años, 1 mes
Puntos: 0
Pregunta Error Notice: Undefined index: nombre in C

un saludo para todos.

mi consulta es la siguiente

quiero hacer un enlace entre php y mysql para un ingreso de usuario si el ingreso es un usuario valido entonces me lleva a "menu.php" pero la verdad ya no se que hacer me arroja los siguientes errores al ejecutarlo

Notice: Undefined index: nombre in C:\wamp\www\pruebadeenlace\verificar.php on line 3

Notice: Undefined index: clave in C:\wamp\www\pruebadeenlace\verificar.php on line 3

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\pruebadeenlace\verificar.php on line 4

Notice: Undefined variable: num_registros in C:\wamp\www\pruebadeenlace\verificar.php on line 6

Que es lo que estoy haciendo mal?? he tratado mucho y tengo horas y horas buscando solucion y no entiendo el error

tengo las siguientes paginas

LA DE index.php

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="es" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>INGRESE SUS DATOS&nbsp; NOMBRE</title>
<style type="text/css">
.auto-style1 {
text-align: center;
}
</style>
</head>

<body>

<div id="layer1" class="auto-style1" style="position: absolute; width: 457px; height: 238px; z-index: 1; left: 10px; top: 15px">
<div class="auto-style1">
INGRESE SUS DATOS<br />
<br />
</div>
<form method="post" action="verificar.php">
<div class="auto-style1">
NOMBRE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
<input name="Text1" type="text" /><br />
CLAVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input name="Password1" type="password" /><br />
<br />
<input name="Button1" type="submit" value="ENTRAR" /></div>
</form>
</div>

</body>

</html>


LA DE conexion.php

<?php
//conexion con el servidor
$conexion=mysql_connect("localhost","root","");
//seleccion de la base de datos
mysql_select_db("prueba",$conexion);
?>


LA DE verificar.php

<?php
include("conexion.php");
$rst_usuarios=mysql_query("SELECT * FROM usuarios WHERE usrlogin'". $_POST["nombre"]."' and usrclave='". $_POST["clave"]."';",$conexion);
$num_resgistros=mysql_num_rows($rst_usuarios);

if ($num_registros>0)
//mostrar pagina menu
header("location:menu.php");

else
echo "El usuario o la clave no son validos";

mysql_close($conexion);
?>


Y LA DE menu.php

<?php
echo "BIENVENIDO AL MENU"
?>


utilizo el wampserver
de verdad ya no se que hacer
gracias de antemano les agradezco mucho su ayuda