=3) { if(ctype_alpha($fullname)) { if(preg_match('#^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$#i',$email)) { if(strlen($subject)>=6) { if(strlen($content)>=30){ $new="Fullname: $fullname
Telephone: $phone
Email: $email
Instant: $instant
Subject: $subject
Content: $content"; mail("agentvoltage@gmail.com", "An email from your-website", $new); } else { echo "Content is less then 30 characters"; } } else { echo "Subject is less then 6 characters"; } } else { echo "Email is not vaild"; } } else { echo "Fullname cannot contain numbers"; } } else { echo "Fullname is less then 3 characters"; } } else { echo "Please check that none of the marked with wildcard fields isnt empty"; } ?>