Please select your gender
\n"; } if (!ereg('^[a-zA-Z]\'-{2,75}$', $_POST['full_name'])) { $errors['full_name'] = "Please enter your full name
\n"; } if (!ereg('^[0-9a-zA-Z]\'-{2,49}$', $_POST['home_address'])) { $errors['home_address'] = "Please enter your home address
\n"; } if (!isUKPostcode($_POST['home_pcode'])) { $errors['home_pcode'] = "Please enter your home postcode
\n"; } if (!ereg('^[0-9a-zA-Z]\'-{2,49}$', $_POST['term_address'])) { $errors['term_address'] = "Please enter your term address
\n"; } if (!isUKPostcode($_POST['term_pcode'])) { $errors['term_pcode'] = "Please enter your term postcode
\n"; } if (!ereg('^(\+)[\s]*(.*)$', $_POST['home_phone'])) { $errors['home_phone'] = "Please enter a valid home telephone number
\n"; } if (!ereg('^\d{5} \d{6}$', $_POST['mob_phone'])) { $errors['mob_phone'] = "Please enter a valid mobile telephone number
\n"; } if (!ereg('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$', $_POST['email'])) { $errors['email'] = "Please enter a valid email address
\n"; } if ($_POST['country']= "") { $errors['country'] = "Please select your nationality
"; } if ($_POST['dobDay']= "") { $errors['dobDay'] = "Please select the day of your Date of Birth
"; } if ($_POST['dobMonth']= "") { $errors['dobMonth'] = "Please select the month of your Date of Birth
"; } if (!ereg("[0-9]{4}", $_POST['dobYear'])) { $errors['dobYear'] = "Please enter the year of your Date of Birth
"; } if (!ereg('^[a-zA-Z]$', $_POST['objective'])) { $errors['objective'] = "Please state your objective
"; } if (!ereg('^[a-zA-Z]$', $_POST['preference'])) { $errors['preference'] = "Please state your preference
"; } if (!ereg('^[a-zA-Z]$', $_POST['skills'])) { $errors['skills'] = "Please state your skills
"; } if (fileUploadOK($_POST['photograph'])) { $errors ['photograph']= "Please upload a valid photograph: " . $_FILES["file"]["error"] . "
"; } return $errors; } function print_form() { printf('