Answers for "isset post in php ternary"

PHP
1

php shorthand if isset post

$name = isset($_POST['submit']) ? $_POST['name'] : null;
Posted by: Guest on December-22-2020
2

php isset post

if (!empty($_POST["mail"])) {
    echo "Yes, mail is set";    
} else {  
    echo "No, mail is not set";
}
Posted by: Guest on June-06-2020

Browse Popular Code Answers by Language