我使用这个脚本:
switch($id) {
//Username and real name need the same validation, so only need one case block here
case "titel":
case "graad":
case "info":
case "youtube":
//Ensure that they are both at least 6 characters long
if (strlen($value) < 6) {
//To make it more readable, replace the "-"'s with spaces and make the first character upper case
$msg = str_replace("-", " ", ucfirst($id)) . " moet minimaal 6 karakters lang zijn.";
}
break;
case "personen":
case "duur":
//Use PHP filter to validate the E-Mail address
if (!ctype_digit($value)) {
$msg = str_replace("-", " ", ucfirst($id)) . " mag alleen uit cijfers bestaan.";
}
break;
default:
$msg = "";
break;
}
我使用一个动态表单字段,名称为:nodig[] 和一个字段 aantal[]。问题是输入字段是由 id 呈现的。
如何将动态字段放入交换机?
带有表格的网站:http ://www.rolfvandamme.nl/beta/ (点击橙色按钮)。
对不起,我的英语不好。