//---- Required uploaded file field
if ($dbts_Formid ==
xx) {
$File1_Name = ($_FILES['File1']['name']);
$File1_Size = ($_FILES['File1']['size']);
if ($File1_Size == 0 or $File1_Name == "") {
$nderror .= "File 1 Upload is required.\n";
}
//---- Required checkbox field
$checkbox1 = $_POST['checkbox1'];
if ($checkbox1 == "") {
$nderror .= "Ceckbox1 is a required field.\n";
}
//---- Required radiobutton field
$radio1 = $_POST['radio1'];
if ($radio1 == "") {
$nderror .= "Ceckbox1 is a required field.\n";
}
//---- Required select list
$select1 = $_POST['select1'];
if ($select1 == "
Please select one") {
$nderror .= "Please select a ..(
country or whatever else).\n";
}
//---- Required aggreement to terms and conditions
$radio2 = $_POST['radio2'];
if ($radio1 != "Yes") {
$nderror .= "You did NOT agree with our Terms and Conditions.\n";
}
// Password - conform passwod validation
$Password = $_POST['Password'];
$Password1 = $_POST['Password1'];
if ($Password != $Password1) {
$nderror .= "Please check again the password fields.\n";
}
}