Forums

ASP

This topic is locked

ASP example in UD 4 for Dummies

Posted 15 Jul 2002 13:24:19
1
has voted
15 Jul 2002 13:24:19 Peter Sampson posted:
I have entered an example piece of code in a "log In" page as shown in UltraDev 4 for dummies. Page 195.

This is the code and why isn't it working. The error is:
if (String(Request("login") != "undefined"

Here is the full code:

<%
if (String(Request("login") != "undefined" {//i.e. on 2nd pass
if (rsUsers.EOF) {//i.e no matching record found
Response.Redirect("pannellist_login_fail.asp";
}
else {
//**********************************************************
Session("UserID" = String(rsUsers.Fields("ID";
Session("Name" = String(rsUsers.Fields("NewName";
//**********************************************************
Response.Redirect("friends_selection.asp";
}
}
%>

Reply to this topic