password verification

Results 1 to 3 of 3

Thread: password verification

  1. #1
    Join Date
    Dec 1969

    Default password verification

    using a .asp file (register.asp) I want the input.asp file to compare the password and verify password from register.asp. If the passwords are the same, dump in database, if not, redirect back to register.asp with a new field on register.asp saying ! passwords don&#039t match, please re-enter, blah, blah, blah. Everything works except getting the message to appear. How do you have one .asp page declare to another .asp page a varible that if your being redirected back to this page, post "passwords don&#039t match... if your not being redirected don&#039t post message.

  2. #2
    Sonali B. Guest

    Default RE: password verification

    HEllo !!<BR><BR>write following code in INPUT.ASP (before HTML tag starts)<BR><BR>&#060;%<BR>if not request.form("txtPAssword)=rstUser.fields("passwor d") then<BR><BR> Response.Redirect("Login.asp?Login=false")<BR>end if<BR>%&#062;<BR><BR>Write following part inside body tag of the REGISTER.ASP<BR><BR>&#060;% if Request.QueryString("Login") ="false" then %&#062;<BR> &#060;h3&#062;Login Failed&#060;/h3&#062;<BR>&#060;% end if %&#062;<BR><BR>Here if password is invalid, pass LOGIN=somevalue which is received as querystring ij login page.<BR>access that value and show blah blah message..........<BR><BR>Good Luck !!<BR><BR>Sonali B.

  3. #3
    Join Date
    Dec 1969

    Default RE: password verification (worked great, thanks So


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts