Separate names with a comma.
Discussion in 'Web Design and Development' started by charl, Sep 22, 2009.
Hi, many visitors type their email address wrong. How can I make sure this does not happen?
There are a bunch of different ways, both on the client (browser) side and the server side.
On the server side, the script processing the submitted form data can also check for invalid data, and if it's not good, then re-display the form, usually with a little message saying "please enter a valid email address".
There's probably a ton of other ways, but these are two easy ones. You can Google for "form validation" or "email address validation" for lots of good tips and sample code.
Are you wanting to validate the format of the email address, or the existence of the email address entered?
I wanted to validate the format, because some users write stupid things there. Unfortunatelly I discoverd that my hosting does not allow PHP. (maybe because is so cheap ) . I googled a little and now I am using http://www.123contactform.com. It's remotely hosted and I can add a field validation rule for my email address field.