Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script

PHP !EMPTY FUNCTION

The !empty() function checks to see if a variable is empty or set. The !empty() function is commonly implemented with if and else conditional statements while using $_POST variables in a form. Its usage is very similar to the isset() function. For example, if the name field is !empty within a form a statement is executed, otherwise, an error is prompted.

if (!empty($name)){
do this
}
else {
echo “Please enter your name!”;
}