started some input validation code and unit tests for it
[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 ?>