Forums

ASP

This topic is locked

Failed Login then redirect.

Posted 14 Jul 2003 05:52:07
1
has voted
14 Jul 2003 05:52:07 NaiWah Lui posted:
hi

I want to know how do i display login error messages on the login.asp when user failed to supply correct password or username? I do not want to redirect to another page when username or password is incorrect.

I tried using one of the solution in the forum: www.dmxzone.com/forum/topic.asp?TOPIC_ID=19661&FORUM_ID=3&CAT_ID=2&Topic_Title=Login+Error+Message&Forum_Title=Dreamweaver+UltraDev but didn't work. it kept showing the error messages.

Thanks

Replies

Replied 14 Jul 2003 14:09:47
14 Jul 2003 14:09:47 Lee Diggins replied:
Hi

Something like this?

Set the following (notice the ?err=1) to:

MM_redirectLoginFailed="login.asp?err=1"

The somewhere on the page add this:

<%
If Request.QueryString("err" = "1" Then
Response.Write("<h3>Login Failed!h3>"
End If
%>

Digga

Sharing Knowledge Saves Valuable Time!!!

Reply to this topic