
Cure
User
Feb 17, 2000, 2:39 PM
Post #3 of 5
(251 views)
|
Hi if ($EmailAddress!~ /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/) { emailbad() } sub emailbad { print $q->start_html(-title=>"Improper Email", -author=>'me', -BGCOLOR=>'white'); <CENTER><BR> print qq~ <TABLE BORDER="0" WIDTH="400"><TBODY><COLDEFS><COLDEF></COLDEFS><ROWS><TR><TDCOLSTART="1"><P><B><FONT FACE="verdana, arial, helvetica"><FONT COLOR="#000080">Status: Improper Email Address!</FONT></FONT></B></P><P><FONT SIZE=-1 FACE="verdana, arial, helvetica">You have entered an improper email address. Please make sure your email address appears in this manner: username\@domain.com, or username\@domain.net, etc. !</FONT></P> <P><FONT SIZE="-1" FACE="verdana, arial, helvetica">If you need extra assistance, please contact us at <A HREF=""></A> for assistance.</FONT></P> <CENTER><TABLE BORDER=0 WIDTH=400><TBODY><COLDEFS><COLDEF></COLDEFS><ROWS><TR><TD COLSTART="1"><HR SIZE="1"></TD></TR</ROWS></TBODY></TABLE></CENTER></TD></TR></ROWS></TBODY></TABLE></CENTER> ~; print $q->end_html; exit; } Cure
|