I have a question. My site generates email addresses for registered users. The email addresses look like this "John265Green@top.MYSITE.com" Can you please show me how to make email verification javascript for the following format 1) All entered email addresses must contain "@top.www.MYSITE.com" 2) The first part of the email address must be "(LETTERS)(3 Numbers)(LETTERS)@top.www.MYSITE.com" Thanks in advance for the help guys. I truly appreciate it!
Can you please include to full function javascript and input form to call it? Maybe an alert box saying "invalid" if they input the wrong email type? That way can just copy and paste it in my php file? Otherwise I am lost. Thanks dixcoder and anyone else who wants to have a shot at it!
<script type="text/javascript"> if(/\w*\d{3}\w*\@top\.www\.MYSITE\.com/.test(email_text)) alert("valid email"); </script> HTML: