if(isset($_POST['submit']){ //Your Code Here }
if (!empty($_POST["mail"])) { echo "Yes, mail is set"; } else { echo "No, mail is not set"; }
if (isset(true)) { }