Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/06/2002, 04:20
pumuky
 
Fecha de Ingreso: mayo-2002
Mensajes: 82
Antigüedad: 23 años
Puntos: 0
Re: Es posible separar 2 variables....

Tal y como lo estás haciendo no se puede hacer, es mejor q pruebes así:


SQLQuery1 = "SELECT Usuario FROM datauser WHERE usuario='" & nom & "
Set Rs1 = conn.Execute(SQLQuery1)

If Not Rs1.EOF Then
SQLQuery1 = "SELECT Clave FROM datauser WHERE usuario='" & nom & "' and clave=" & password & ""

Set Rs2 = conn.Execute(SQLQuery1)

If Not Rs2.EOF Then
//Usuario y password correcto
//puede acceder a la web
Else
Response.Redirect("verificacion_password&quot ;)
End If

Else
Response.Redirect("verificación_usuario.asp&q uot;)
End If
%>

Suerte