Código:
Saludos <?php include("Conexion.php"); if (isset($_POST["btnentrar"])){ $txtid= $_POST["ide"]; $txtpwd=$_POST["pwd"]; $consulta= "select id,contra from usuario where id = '$txtid' and contra='$txtpwd'"; $sentencia= mysql_query($consulta,$con); while ($rs=mysql_fetch_array($sentencia,$db)){ $name = $rs["usunom"]; } if (isset($name)){ session_start(); $_session['login']=$txtid; $_session['name']=$name; header ('location: menu.php'); } else{ echo "Usuario Inconrrecto"; echo "<a href= 'Acceso.php'></a>"; }} ?>
![:-S](http://static.forosdelweb.com/fdwtheme/images/smilies/crap.png)