Front Page Form Validation

D

Dan

Hello Everyone:

Is it possible to have FrontPage validate so that - if a user's input
does not exactly match the input of another box - the form will not
submit?

I've got a "change password" form - however, I don't want the form to
submit unless the input for the "newpass" field and the input for the
"newpass2" field match exactly.

So - if, in the example, the user input "testing123" in the "newpass"
field - but put "TeStInG123" in the "newpass2" field - the form would
fail to submit and produce an error.

Is this possible with FP XP / 2003?

Dan
 
S

Stefan B Rusynko

In your second password field in html/code view add

onchange="if (this.form.Pword2.value <> this.form.Pword1.value ) { this.form.Pword2.value = ""; alert('The Second Password entered
do not match the First Password.'); this.form.Pword2.focus(); return (false); }"




| Hello Everyone:
|
| Is it possible to have FrontPage validate so that - if a user's input
| does not exactly match the input of another box - the form will not
| submit?
|
| I've got a "change password" form - however, I don't want the form to
| submit unless the input for the "newpass" field and the input for the
| "newpass2" field match exactly.
|
| So - if, in the example, the user input "testing123" in the "newpass"
| field - but put "TeStInG123" in the "newpass2" field - the form would
| fail to submit and produce an error.
|
| Is this possible with FP XP / 2003?
|
| Dan
 

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

Similar Threads

FrontPage form - 4
New To Front Page Please Help 5
Form Validation 5
email validation 1
Edits to a Submitted Form? 0
Form Validation 4
From client to server validation 1
Need a "form" please 2

Top