Print Page | Close Window

Password problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15059
Printed Date: 30 March 2026 at 5:05am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Password problem
Posted By: t4p67b96
Subject: Password problem
Date Posted: 12 May 2005 at 3:30pm
I have a problem on my password page not going to the correct page.  When the user enters a password it takes them to another page which redirects them to the correct page.  But no matter what they enter it goes to the first page.  Below is what I have.
 
 
passw = Request.Form("passwsd")
If Ucase(passw) <> "PROV" then Response.Redirect("inplantprovidence.asp")
If Ucase(passw) <> "BROCK" then Response.Redirect("inplantbrockton.asp")
If Ucase(passw) <> "CAPE" then Response.Redirect("inplantcape.asp")
%>

<body>
<div align="center" class="style1">
  <p>You Have Entered an Incorrect Password</p>
  <form name="form1" method="post" action="password.htm">
    <input name="Retry" type="submit" id="Retry" value="Retry">
  </form>
  <p>&nbsp;</p>
</div>
</body>
</html>
 
Confused



Replies:
Posted By: MadDog
Date Posted: 12 May 2005 at 3:36pm
Thats because of your IF statement.

Someone could enter "BROCK" and be redirected because of the "CAPE" IF statement.

Get what im saying?


-------------
http://www.iportalx.net" rel="nofollow">


Posted By: t4p67b96
Date Posted: 12 May 2005 at 3:52pm
Not really.  I kinda new at this. Should I eliminate IF?


Posted By: t4p67b96
Date Posted: 12 May 2005 at 3:57pm
I just got it.  Works now
 
 
 
Thanks
Smile


Posted By: dj air
Date Posted: 12 May 2005 at 4:00pm
why not download and use a login manager?

i have created one that has password encrypption etc... feature packed mopre details at www.breathofair.co.uk/asp/applications


Posted By: t4p67b96
Date Posted: 12 May 2005 at 4:06pm
Thanks, I'll give it a try.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net