how can I check if any field is empty i tried this:
$x = $_POST['a'];
$y = $_POST['b'];
$z = $_POST['c'];
if($x or $y or $z == ""){echo "Please fill in all the fields";}
else{
//rest of the code
}
but I allways receive the "Please fill in all the fields" message even when i fill in all the fields..
I also tried using the is_empty function but I got an undefined function error
Thanks!