ID Verification Fields

J

JBL

I have a form tied to a database for a user to create their own ID's. I would
like for them to have to enter their ID into two separate fields to ensure
accurracy. My question is, is there an easy way to do that in FrontPage '02,
or do I need to dig out my old cgi book?

Thank you.
 
J

Jens Peter Karlsen[FP MVP]

That is easy enough. Just write a little JavaScript to compare the two
fields.
Something like:
If formfield1.value == formfield2.value (alt OK)
Else
cancel submission and throw up an alertbox.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
J

JBL

Oh, I see. Next question for you. Since it won't allow me to edit the
automatically created ASP content, where would one put that script. It seems
to ignore the script when placed in the Head or Body. Thanks

Jens Peter Karlsen said:
That is easy enough. Just write a little JavaScript to compare the two
fields.
Something like:
If formfield1.value == formfield2.value (alt OK)
Else
cancel submission and throw up an alertbox.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: JBL [mailto:[email protected]]
Posted At: 19. november 2004 23:19
Posted To: microsoft.public.frontpage.programming
Conversation: ID Verification Fields
Subject: ID Verification Fields


I have a form tied to a database for a user to create their
own ID's. I would like for them to have to enter their ID
into two separate fields to ensure accurracy. My question is,
is there an easy way to do that in FrontPage '02, or do I
need to dig out my old cgi book?

Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top