password confirm

B

blues

i have a form set up to register users to my site. it
has a username, password, and confirm password field.
can anyone tell me where to put a comparevalidator so
that when they hit submit it checks them before it sends
it to my db. also, if someone knows the code for compare
validator i would truly appreciate it,in asp. thanks so
much, i am merely a newcomer to asp.
 
M

MD WebsUnlimited.com

Hi Blues,

Why ASP? Does it not make sense to validate the data before sending it to
the server? Using JavaScript and the onclick event of the submit button.

<input type="submit" onclick="if (this.form.Password1.value !=
this.form.Password2.value) {alert('Password values do not agree!'); return
false; } else { return true; } " >
 

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