I have used the following code:
$name = $POST['name'];
$home_phone = $POST['home_phone'];
$mobile = $POST['mobile'];
$address = $POST['address'];
$postcode = $POST['postcode'];
$cand_email = $POST['cand_email'];
$cv = $_POST['cv'];
if((!$name) || (!$cand_email) || (!$cv)){
echo '<strong>You did not submit the following required information:</strong> <br />';
if(!$name){
echo "Name is a required field. Please enter it below.<br />";
}
if(!$cand_email){
echo "Email address field is required. Please enter it below.<br />";
}
if(!$cv){
echo "cv field is required. Please enter it below.<br />";
}
include 'apply_form.php';
include 'footer.htm';
exit(); // if the error checking has failed, we'll exit the script!
}
And in the previous form, in each of the fields i have put a value as:
<? echo $cand_email; ?>
But with the CV, because it is attachement it doesnt work. If you dont fill in the required fields you get an error, beside the cv field, the other work fine. Even if you put an attachement in it keeps on saying you havent attached a cv.
HELP??????????!!!!!!!!!!
🙁