Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/07/2005, 07:43
Grumete
 
Fecha de Ingreso: agosto-2002
Ubicación: En frente de un PC blanco muu grande
Mensajes: 183
Antigüedad: 22 años, 8 meses
Puntos: 0
na, es un sencillo:

Código:
<form name="f1" action="login.asp" method="post" onkeypress="envia()">
		<td align="right">
		<table border=0 cellpadding=0 cellspacing=0>
		<tr>
			<td class="titform" align="right">login</td>
			<td><img src="images/pix_trans.gif" border=0 width=5 height=1></td>
			<td valign="top"><input type="text" name="login"></td>
		</tr>
		<tr>
			<td><img src="images/pix_trans.gif" border=0 width=1 height=5></td>
		</tr>
		<tr>
			<td class="titform">password</td>
			<td><img src="images/pix_trans.gif" border=0 width=5 height=1></td>
			<td valign="top"><input type="password" name="pass"></td>
		</tr>
		</table>
		</td>
		</form>
y luego el asp es:

Código:
login = Request.Form("login")
pass = Request.Form("pass")


Set oRs = Server.CreateObject("ADODB.RecordSet")
SQL = "Select * from User Where Login='" & login & "' AND Pwd='" & pass & "'"
response.write SQL
oRs.Open SQL, oCn, 3, 3
__________________
Buitre no come alpiste