M
Michelle
I posted a message earlier that read "I want people to re-type their email
address to confirm their email address in a form I have. However, if they
accidentally type a different address in, they are not prompted of the error
on "submit". How do I validate or set the field properties to require the
same address in the field as in the original email field on "submit"?
The response I got was "You compare the two fields.
<input type="submit" onclick="if (this.field1.value == this.field2.value) {
return true; } else { alert('Email addresses do not
match!'); this.field1.focus(); return false; } " value="Submit" >
I tried pasting the code in but it isn't working for me.
My one field is "email_address" and the other field is "confirm_email".
What changes do I need to make to the above code to get it to work?
I tried "<input type="submit" onclick="if (this.email_address.value ==
this.confirm_email.value) { return true; } else { alert('Email addresses do
not
match!'); this.field1.focus(); return false; } " value="Submit" >, but it
didn't work.
I am doing a fund raiser tomorrow for charity and really need to get this
done as soon as possible. Please help!!!
address to confirm their email address in a form I have. However, if they
accidentally type a different address in, they are not prompted of the error
on "submit". How do I validate or set the field properties to require the
same address in the field as in the original email field on "submit"?
The response I got was "You compare the two fields.
<input type="submit" onclick="if (this.field1.value == this.field2.value) {
return true; } else { alert('Email addresses do not
match!'); this.field1.focus(); return false; } " value="Submit" >
I tried pasting the code in but it isn't working for me.
My one field is "email_address" and the other field is "confirm_email".
What changes do I need to make to the above code to get it to work?
I tried "<input type="submit" onclick="if (this.email_address.value ==
this.confirm_email.value) { return true; } else { alert('Email addresses do
not
match!'); this.field1.focus(); return false; } " value="Submit" >, but it
didn't work.
I am doing a fund raiser tomorrow for charity and really need to get this
done as soon as possible. Please help!!!