Perl Email Syntax Checker
Go to
www.cgiscript.net
for more free tools!
Description:
Use this code to
test an email address for proper
syntax. It will return '1' if the email address passes or a '0' if it fails.
You can use it in conjunction with the Ace Perl Popup Window to let the
user know they entered an invalid email address. For example:
if(!&check_email(email)){
&PError("Error. Invalid email address.");
}
Directions:
Follow Steps 1 and 2 below. Use the
'Grab Text' buttons to select the code within the adjacent textarea. Then
use Control-C or Edit -> Copy to buffer the text for pasting into your document.