2 ms·
I usually just validate that there’s an “@” character. It prevents the most obvious typos like a blank field, or information entered in the wrong field. You’re
by kube-system 5y ago
I usually just validate that there’s an “@” character. It prevents the most obvious typos like a blank field, or information entered in the wrong field.
You’re right that you can’t prevent someone from typing their address incorrectly, but you can make sure they didn’t put in their phone number or their first name by mistake
- deleted 5y ago[deleted]
- lkbm 5y agoMailgun has an API endpoint that works pretty well. If you enter "foo@gnail.con", it suggests "foo@gmail.com". It's overkill for an HN registration form, where if I type my email wrong, I can just re-register, but for checkout forms it can be worth putting in a little extra validation.