if($send && $mail) { if(substr($mail, 0, 1)=="." or substr($mail, 0, 1)=="@" or substr($mail, -1)=="." or substr($mail, -1)=="@" or strlen($mail)<5 or !strstr($mail,'.') or !strstr($mail,'@')){$bad_mail=" ";} } ?>