I have seen online way too many ways to validate an email address; javascript, php, input type=email..........etc.
What is the best way
Printable View
I have seen online way too many ways to validate an email address; javascript, php, input type=email..........etc.
What is the best way
You should always perform server-side validation, so a server-side language such as PHP should do the final check, although you can offer more visual/immediate client-side feedback on the actual web page using JavaScript.