Jump to content

email


angel777

Recommended Posts

hi.. if i do it in php code.. the meail validation is so short

 

 

<?php

$email = "[email protected]";

if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
  echo "Valid email address.";
}
else {
  echo "Invalid email address.";
}

?>

 

 

but i find it hard to get the javascript validation as simple as those above..

 

Link to comment
https://forums.phpfreaks.com/topic/98595-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.