Forums

This topic is locked

login, password and third field validation

Posted 19 Oct 2001 05:49:46
1
has voted
19 Oct 2001 05:49:46 Alex Xander posted:
Plz help me with this little problem. i have a login page with login and password field, and on the database i have another field called "kindofaccess" and it only has 2 values one and two
anyone know how can i redirect to one.html if the "kindofaccess" is one and if is two go to two.html

Replies

Replied 19 Oct 2001 09:18:20
19 Oct 2001 09:18:20 Viktor Farcic replied:
Create recordset filtered with Session("MM_Username". After that insert something like:
<%
If RecordsetName.Fields.Item("kindofaccess" = "1" Then
Response.Redirect("Page1"
Else
Response.Redirect("Page2"
End If

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Plz help me with this little problem. i have a login page with login and password field, and on the database i have another field called "kindofaccess" and it only has 2 values one and two
anyone know how can i redirect to one.html if the "kindofaccess" is one and if is two go to two.html


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic