LOGON PAGES - HELP

M

melissa

http://melissarawlings.co

Can anyone help me out on this issue? I have copied a response from earlier that I tried but couldn't get to work for me... thanks..

Go to View your pictures link on home page. Go to Password-protected page. Logon as 'testuser' - the password is 'password

I can't figure out what my problem is once you hit logon, it is supposed to redirect to a page saying you are logged on as testuser...once you get the error page, you can hit back a couple times and there it is sometimes. I am not knowledgeable in code writing, can someone help me out

-copied response
Think I see what's wrong here - I click View Pictures then Passwor
Protected Page Logon and then get a missing url error. If I then type th
url http://melissarawlings.com/logon/ it correctly says logged on a
testuser. So your logon system is obviously working

On logon.asp you should have some code like thi
<
response.redirect "/logon/default.asp
%

This would redirect after the user has logged on. I think in your code yo
have response.redirect but you're missing the url - look through you
logon.asp code for the words response.redirect and replace it wit
response.redirect "/logon/default.asp". If that doesn't work for you we'l
need to see the code itself so copy and paste it into a messag

So here is the code from the page

Here is the code that the microsoft template had for the logon page: I tried putting in your code but either did it wrong, or something else is wrong...thanks so much in advance
Meliss

<% @language="vbscript" %><!--#include virtual="/logon/_private/logon.inc"--><
' Was this page posted to
If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" The
' If so, check the username/password that was entered
If ComparePassword(Request("UID"),Request("PWD")) The
' If comparison was good, store the user name..
Session("UID") = Request("UID"
' ...and redirect back to the original page
Response.Redirect Session("REFERRER"
End I
End I
%><html><head><title>Logon Page</title><style
body { font-family: arial, helvetica
table { background-color: #cccccc; font-size: 9pt; padding: 3px
td { color: #000000; background-color: #cccccc; border-width: 0px
th { color: #ffffff; background-color: #0000cc; border-width: 0px
</style></head><body bgcolor="#000000" text="#ffffff"><h3 align="center"> </h3><div align="center"><center><form action="<%=LOGON_PAGE%>" method="POST"><table border="2" cellpadding="2" cellspacing="2"><tr><th colspan="4" align="left">Enter User Name and Password</th></tr><tr><td> </td><td colspan="2" align="left">Please type your user name and password.</td><td> </td></tr><tr><td> </td><td align="left">Site</td><td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td><td> </td></tr><tr><td> </td><td align="left">User Name</td><td align="left"><input name="UID" type="text" size="20"></td><td> </td></tr><tr><td> </td><td align="left">Password</td><td align="left"><input name="PWD" type="password" size="20"></td><td> </td></tr><tr><td> </td><td colspan="2" align="center"><input type="submit" value="LOGON"></td><td> </td></tr></table></form></center></div></body></html>
 
N

Net55

post the code on the page or check support for where you
got the script

Net55
(e-mail address removed)
http://www.frontpagewiz.com
-----Original Message-----
http://melissarawlings.com

Can anyone help me out on this issue? I have copied a
response from earlier that I tried but couldn't get to
work for me... thanks...
Go to View your pictures link on home page. Go to
Password-protected page. Logon as 'testuser' - the
password is 'password'
I can't figure out what my problem is once you hit logon,
it is supposed to redirect to a page saying you are logged
on as testuser...once you get the error page, you can hit
back a couple times and there it is sometimes. I am not
knowledgeable in code writing, can someone help me out?
-copied response-
Think I see what's wrong here - I click View Pictures then Password
Protected Page Logon and then get a missing url error. If I then type the
url http://melissarawlings.com/logon/ it correctly says logged on as
testuser. So your logon system is obviously working.

On logon.asp you should have some code like this
<%
response.redirect "/logon/default.asp"
%>

This would redirect after the user has logged on. I think in your code you
have response.redirect but you're missing the url - look through your
logon.asp code for the words response.redirect and replace it with
response.redirect "/logon/default.asp". If that doesn't work for you we'll
need to see the code itself so copy and paste it into a message


So here is the code from the page:

Here is the code that the microsoft template had for the
logon page: I tried putting in your code but either did it
wrong, or something else is wrong...thanks so much in
advance!
Melissa


<% @language="vbscript" %><!--#include virtual="/logon/_private/logon.inc"--><%
' Was this page posted to?
If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
' If so, check the username/password that was entered.
If ComparePassword(Request("UID"),Request("PWD")) Then
' If comparison was good, store the user name...
Session("UID") = Request("UID")
' ...and redirect back to the original page.
Response.Redirect Session("REFERRER")
End If
End If
%><html><head><title>Logon Page</title><style>
body { font-family: arial, helvetica }
table { background-color: #cccccc; font-size: 9pt; padding: 3px }
td { color: #000000; background-color: #cccccc; border- width: 0px }
th { color: #ffffff; background-color: #0000cc; border- width: 0px }
</style></head><body bgcolor="#000000" text="#ffffff"><h3
align="center"> </h3><div align="center"><center><form
action="<%=LOGON_PAGE%>" method="POST"><table border="2"
cellpadding="2" cellspacing="2"><tr><th colspan="4"
align="left">Enter User Name and
Password</th></tr><tr><td> </td><td colspan="2"
align="left">Please type your user name and
password.</td><td> </td></tr><tr><td> </td><td
align="left">Site said:
</td><td> </td></tr><tr><td> </td><td align="left">User
Name</td><td align="left"><input name="UID" type="text"
size="20"></td><td> </td></tr><tr><td> </td><td
align="left">Password</td><td align="left"><input
name="PWD" type="password"
size="20"></td><td> </td></tr><tr><td> </td><td
colspan="2" align="center"><input type="submit"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top