59de285403a424714e77f5bc7e4a19a98792e97f
[gwvp.git] / gwvplib / gwvpinputcheck.php
1 <?php
2
3 // the purpose of this php is to provide input validation functions
4 function gwvp_checkEmail($email)
5 {
6         $match = preg_match("/^[a-zA-Z0-9\+]+@[a-zA-Z0-9\.]+$/", $email);
7         
8         if($match != 1) return false;
9         else return true;
10 }
11
12 ?>