- 1
- 2
- 3
- 4
- 5
- 6
- 7
if(preg_match("/^([a-z0-9_\.-]+)@([a-z0-9_\.-]+)\.([a-z\.]{2,6})$/", urldecode($_POST['email']))){
$email = urldecode($_POST['email']);
}else{
$email = '';
}
$email = mysql_real_escape_string($email);
$email = strip_tags($email);