validation of passwords and email

  • Thread starter Thread starter Tom Stehouwer
  • Start date Start date
T

Tom Stehouwer

there are a whole slew of ways to validate. but how do
you get it to validate that BOTH form text boxes are the
SAME? passwords e-mails etc. basically to check that they
type it correctly twice? anyone could help me out i'd
greatly apreciate it. i'm using FP2003
 
Hi Tom,

You'll need to utilize JavaScript to compare the values of the two fields.

<submit onclick="if ( this.form.field1.value <> this.form.field2.value ) {
alert ('Field1 does not match Field2'); return false; } >

If the other fields in the form utilize the FP validation then you'll have
to call that validation also -- I leave that as an exercise for you.

You may also wish to take a look at J-Bots Form Components,
http://www.websunlimited.com/order/Product/Form/Form_help_dir.htm, and the
Compare Two Fields.
http://www.websunlimited.com/order/Product/Form/comparetwo.htm

You'll also be able to perform email validation, etc.
 
Back
Top