Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: log in code not working :(
03-18-2010, 04:43 AM #1
- Join Date
- Mar 2010
- Thanked 0 Times in 0 Posts
log in code not working :(
I tried running the below code using IExplorer.
Even after entering the username as 'joe' and password as 'please' it is not redirecting me to 'order.asp' instead says incorrect log in details..why??
Can you help me please
Thanks in advance!
<!-- 8-qu 3 order with form.asp -->
<!-- build output in a buffer then send -->
<% Response.Buffer = true %>
IF Request.form="" THEN
<title>Our private pages</title></head>
In order to access these pages fill the form below:
<form method="post" action="8-qu 3 order with form.asp">
Username: <input type="text" name="username" size="20"><BR>
Password: <input type="password" name="password" size="15"><BR>
<input type="Submit" value="Submit">
IF Request.form("username")="Joe" AND Request.form("password")="please" THEN
' Redirect response to a different page
Error in username or password
END IF ' login authentication
END IF ' form = ""
03-18-2010, 07:28 AM #2
Worked fine for me.
I'm beginnig to suspect that you do *NOT* have ASP running on your web server.
Try this test page, just to find out:
If you don't see the date and time, then ASP is not working on your server.Code:<html><body> If ASP is active you will see the time and date here: <%=Now()%> </body></html>
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.