I am trying to verify if the field is empty, (Have verifying if .jpg or .gif working)
I have tried these:
and all sorts of variations
It either comes up that there is no image selected whether there is or not - or there is an image selected whether there is or not.
Any help greatly appreciated
I have tried these:
Code:
if (empty($_"FILES['image']['tmp_name'])){
$message = "Please choose and image";
}
if ($_"FILES['image']['size']===0){
$message = "Please choose and image";
}
if ($_"FILES['image']['size']==0){
$message = "Please choose and image";
}
if ($_"FILES['image']['tmp_name']=="")){
$message = "Please choose and image";
}
It either comes up that there is no image selected whether there is or not - or there is an image selected whether there is or not.
Any help greatly appreciated