How To Check Valid Email Is Correct In A Html Form With Php
- Forums
- Tutorial And Guides
- How To Check Valid Email Is Correct In A Html Form With Php
This Page Contains information about How To Check Valid Email Is Correct In A Html Form With Php By santos in category Tutorial And Guides with 2 Replies. [1498], Last Updated: Sat May 18, 2024
santos
Mon Mar 09, 2009
2 Comments
551 Visits
hello, how can i check to see if a someone puts a valid email in my contact form
lately i have been getting spams and i was wondering if you know how i can verify that the email it was submited is correct? i really need to find out how to check because all these invalid emails i am getting on my contact from in my html i have php and i see that you have many tutorials on php. i also have a wallpaper site and thats where my contact us form is located but lately i just been getting fake email address from the contact html form.
thanks
<?
if(!CheckEmail($_POST['email'])){
$error = 'A Valid Email Is Required';
}
?>
as you can see from the code, it basically says. if function returns false, then make the value of $error = 'A Valid Email Is Required';
this is a simple way to validate someone email address