Categories
PHP 5

Check if PHP Post Variable is set

Info from Stackoverflow




if (isset($_POST["mail"]) && !empty($_POST["mail"])) {
    echo "Yes, mail is set";    
}else{  
    echo "N0, mail is not set";
}