$val) { if (!in_array($key, array('verplicht','subject','mailto','mailtemplate','submit'))) { $val = maakveldschoon($val); // validate if (in_array($key, $verplicht)) { if ($key=='email') { $ditveldok = emailok($val); } else { $ditveldok = veldok($val); } if (!$ditveldok) { // commentaar $comm .= "- " . $key . "
"; } $allesok = ($allesok && $ditveldok); } // inputveld $pattern = "/(/i"; $replacement = "\\1value=\"" . maakveldop($val) . "\"\\3>"; $template = preg_replace($pattern, $replacement, $template); // radiobutton $pattern = "/(/i"; $replacement = "\\1 CHECKED\\2>"; $template = preg_replace($pattern, $replacement, $template); // checkbox $pattern = "/(/i"; $replacement = "\\1 CHECKED \\2>"; $template = preg_replace($pattern, $replacement, $template); // select $pattern = "/(