"require", "email"=>"require", "age"=>"age_check"); function age_check($age) { if ( !empty($age) && is_numeric($age) && $age >= 18 && $age <= 65) { return "OK"; } else { return "must be 18 to 65"; } } //// customized form validation end //// Do not modify below this line require_once("formfns.php"); if (($_SERVER['REQUEST_METHOD']=="GET" && count($_GET)==0 ) || ! formdata_check($_REQUEST) ) { require($the_form); } else { require($the_action); } ?>