|
-
Jan 29th, 2002, 11:43 AM
#1
Thread Starter
New Member
Validating Password Confirmation Fields on a Form
I am creating a user registration page for a project i am doing and I am having difficulty validating the password fields, i believe the problems lies with the specified input type. The code i am using works with text type inputs but does not seem to recognise password types. Does anyone have any suggestions other than making the password fields text fields. Below is an example of the IF THEN ELSE statements i am using....
<!-- Option Explicit
dim validation
dim header
header = "Pizza Organic"
Function MyForm_OnSubmit
validation = True
If (Document.MyForm.Password.Value) <> (Document.MyForm.ConfirmPassword.Value) Then
MsgBox "Your confirmation password does not match your orginal password, please correct this!",8, Header
validation = False
End If
If validation = True Then
MyForm_OnSubmit = True
Else
MyForm_OnSubmit = False
End If
End Function
-->
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|