if(!isset($fromemail) || empty($fromemail) || !isset($fname) || empty($fname) || !isset($lname) || empty($lname) || !isset($message)){ echo 'empty data'; }else{ echo 'data verified'; };
checks if $fromemail, $fname, $fname or $message is set or blank, if any of the 4 are (blank or unset) echo the text "empty data" else echo "data verified"
Thanks dragon.
Note that the first 3 !isset() checks are redundant, since empty() includes such checking.
Nogdog, thanks for the invaluable information. As a new php script kiddie trying to break into this language, thanks.