Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/06/2008, 15:11
leonar2445
 
Fecha de Ingreso: mayo-2008
Mensajes: 63
Antigüedad: 16 años
Puntos: 1
¿Como hago un formulario con USUARIO Y PASSWORD?

Buena Tardes

Lo que busco es que una persona pueda ingresar con su usuario y password a un formulario



HERMANOS ASESORENME LO TENGO DE ESTA MANERA


EN HTML
<form name="usuario.php" method="post" action="">

<input name="usua" type="text">
<input name="pass" type="password">
<input type="submit" name="Submit" value="Enviar">

EN PHP

<html>
<head>
<title>Problema</title>
</head>
<body>
<?php
$conexion=pg_connect("host=localhost port=5432 password=1234 user=postgres dbname=usuarios")
or die("Problemas en la conexion");

pg_query("select * from usuarios where usua='$_REQUEST[e]' and pass='$_REQUEST[e]'

pg_close($conexion);
echo "El alumno fue dado de alta";
?>
</body>
</html>