Email form

Code:
function validate_form($message, $email) {
	if (!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$', $email)) {
		return false;
	} else {
		return true;
	}
}


this thing, it half-validates an email address ... I ain't a php programmer, but it seems to work very well.

and
Code:
  $email = stripslashes($_REQUEST['email']);
  $message = stripslashes($_REQUEST['message']);
 
Back
Top Bottom