Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Password problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Password problem

 Post Reply Post Reply
Author
t4p67b96 View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote t4p67b96 Quote  Post ReplyReply Direct Link To This Post Topic: Password problem
    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.
 
 
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
 background-color: #003366;
}
.style1 {
 color: #FFFFFF;
 font-weight: bold;
}
-->
</style></head>
<% Dim passw
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


Edited by t4p67b96 - 12 May 2005 at 3:31pm
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
t4p67b96 View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote t4p67b96 Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2005 at 3:52pm
Not really.  I kinda new at this. Should I eliminate IF?
Back to Top
t4p67b96 View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote t4p67b96 Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2005 at 3:57pm
I just got it.  Works now
 
 
 
Thanks
Smile
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
t4p67b96 View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote t4p67b96 Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2005 at 4:06pm
Thanks, I'll give it a try.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.