scuttleButt
Programmer
I GIVE UP!
I am trying to compare two passwords to make sure they match, seems simple enough. My code:
<%
goToHere = Request.ServerVariables("URL"
theString=Request.queryString("firstTime"
If theString <> "true" Then
DIM firstPassword
DIM secondPassword
firstPassword=Request.Form("password"
secondPassword=Request.Form("password2"
If firstPassword = secondPassword Then
Response.Redirect ("splash.asp"
Else
Response.Redirect("pw_change.asp?valid=false"
End If
End IF
goToHere = Request.ServerVariables("URL"
& "?firstTime=false"
%>
No matter what I type in the two passwords it always goes to splash.asp. So.. I comment out splash and response.write the two passwords to see what's in them and guess what? It works, when I type in non-matching passwords it comes back to itself (pw_change.asp) with a false and shows the word the passwords don't match. When I type in matching passwords it shows the pass words. See below.
<%
goToHere = Request.ServerVariables("URL"
theString=Request.queryString("firstTime"
If theString <> "true" Then
DIM firstPassword
DIM secondPassword
firstPassword=Request.Form("password"
secondPassword=Request.Form("password2"
If firstPassword = secondPassword Then
Response.Write (firstPassword)
Response.Write (secondPassword)
'Response.Redirect ("splash.asp"
Else
Response.Redirect("pw_change.asp?valid=false"
End If
End IF
goToHere = Request.ServerVariables("URL"
& "?firstTime=false"
%>
If I take out the response.writes and uncomment the response.redirect it's broke again.
WHAT AM I MISSING HERE?
Thanks ahead of time for any help... I'm desperate.
Donna
I am trying to compare two passwords to make sure they match, seems simple enough. My code:
<%
goToHere = Request.ServerVariables("URL"
theString=Request.queryString("firstTime"
If theString <> "true" Then
DIM firstPassword
DIM secondPassword
firstPassword=Request.Form("password"
secondPassword=Request.Form("password2"
If firstPassword = secondPassword Then
Response.Redirect ("splash.asp"
Else
Response.Redirect("pw_change.asp?valid=false"
End If
End IF
goToHere = Request.ServerVariables("URL"
%>
No matter what I type in the two passwords it always goes to splash.asp. So.. I comment out splash and response.write the two passwords to see what's in them and guess what? It works, when I type in non-matching passwords it comes back to itself (pw_change.asp) with a false and shows the word the passwords don't match. When I type in matching passwords it shows the pass words. See below.
<%
goToHere = Request.ServerVariables("URL"
theString=Request.queryString("firstTime"
If theString <> "true" Then
DIM firstPassword
DIM secondPassword
firstPassword=Request.Form("password"
secondPassword=Request.Form("password2"
If firstPassword = secondPassword Then
Response.Write (firstPassword)
Response.Write (secondPassword)
'Response.Redirect ("splash.asp"
Else
Response.Redirect("pw_change.asp?valid=false"
End If
End IF
goToHere = Request.ServerVariables("URL"
%>
If I take out the response.writes and uncomment the response.redirect it's broke again.
WHAT AM I MISSING HERE?
Thanks ahead of time for any help... I'm desperate.
Donna