How do I check that a valid email address is entered?
The best these can do is check that it appears to be in a valid format, of course there is no way to check if sending an email to that address will get delivered - short of actually sending a message and checking that there is no bounce!
These tend to look horrendously complicated and so rather than work one out, find one you like off an internet site and go with that.
There are many candidates out there, here is one possibility:
^[^@]{1,64}@[^@]{1,255}$
Comments on this Question/Answer
How do I check that a valid email address is entered?By: gosho michael, 04 Jun 2009 07:48:11
Reply to comments / post your own comment >>>
ASK A QUESTION
More forms PHP Questions
What are magic quotes?How do I check for an empty field in a form?
Can I use a variable from a .php file to give a value to an HTML FormMail form field thus: ? Thank you
how to access information sent trough $_GET on functions?
How can I access information sent through POST on a form?
