also...missing a semicolon after the alert.
function CheckPass()
{
if (document.process_member.pass.value !=
document.process_member.confirmit.value)
{
alert('"The passwords you entered do not match
each other. Please try
again.");
return false;
}
else
return true;
}
</script>
On Mon, 22 Nov 2004 15:29:56 -0500, Phillip Perry
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Sorry for the ot but i'm in a bit of a pickle. Can someone tell me why the
> following code doesnt work?
>
> <script LANGUAGE="JavaScript" TYPE="text/javascript">
> function CheckPass()
> {
> if (document.process_member.pass.value !=
> document.process_member.confirmit.value)
> {
> alert('"The passwords you entered do not match each
> other. Please try
> again.") return false;
> }
>
> }
> </script>
>
> <form ...blah... OnSubmit="return CheckPass();" name="process_member">
>
> pass and confirmit both exist. I'm not getting any error codes. It's just
> processing the form without doing the JS first. What am I doing wrong?
>
> Thanks,
>
> Phil
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185066
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54