Question : Need help with regex mail checking

Hello once again.

I have created this code:

  <form action="action1.php" name="fcontact" id="fcontact" method="post" onSubmit="return validateContact('fcontact');">
    Name: <input type="text" name="fname" id="fname" value="" style="width:250px;">
    Email: <input type="text" name="fmail" id="fmail" value=""  style="width:250px;">
    Phone No.: <input type="text" name="fphone" id="fphone" value=""  style="width:250px;">
    Address: <input type="text" name="faddress" id="faddress" value=""  style="width:250px;">
    City: <input type="text" name="fcity" id="fcity" value=""  style="width:250px;">
    State: <input type="text" name="frmState" id="frmState" value=""  style="width:250px;">
    Country: <input type="text" name="fcountry" id="fcountry" value=""  style="width:250px;">
   <input type="submit" name="fsubmit" id="fsubmit" value="Submit"><input type="reset" name="frmReset" id="frmReset" value="Reset"></td>


The problem here is that user can use an invalid e-mail, missing an @ and introduce fake email. How can a code the code that will be check is an email valid or not?

Thank you

Answer : Need help with regex mail checking

Had the same problem with R52 and T40 series. Great for the first 5 years, but 3 died with very similar circumstances. One tech told me it was the board but buy the time I found a replacement board and had it installed, I could probably buy a replacement with warranty, etc. Since it was older, that is what I did. I hope you find a better answere. Thx
Random Solutions  
programming4us programming4us