|
Dave
et al, Thanks for all the help on this question. I have it working with
your help. This list is great!!
OK, Lets start with the real crux of your problem. You are mixing
client-side and server-side technologies and that will not work.
Your JavaScript section is client-side technology and your ColdFusion is
server-side technologies. What you need to do is perform your test (just like
you are doing) set a variable that is passed to the login page and when you
redirect them to the login page test for that variable and display an error
message that says passwords are case sensitive. You do not need
JavaScript to do that. You can do it all with ColdFusion.
Action page:
<cfif #Compare(Password1,Password2)#> //You
can use this "short cut code" <!--- Password is
correct. ---> <cflocation
url="choices.htm"> <cfelse> <!---
Passwords do not match --->
<cflocation
url="login.cfm?pwd=0">
<cflocation
url="login.cfm"> </cfif>
On the login page:
<cfif IsDefined("URL.PWD"> //This will only be true if
the passwords submitted previously do not match
Passwords are case
sensitive
</cfif>
|