$s=&$HTTP_POST_VARS; include 'inc/p20funcdb.htm'; switch ($s['mode']){ case 1: //check email if (preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$/i",$s['email'])){ if (addNewsletter()) $msg='
Email Address added.
'; }else $msg='Invalid Email Address.
'; } ?> include 'inc/h1.inc'; echo 'echo $msg; include 'inc/rowbdyf.inc'; include 'inc/f.inc'; ?>