Answers for "using isset in php with post"

PHP
2

isset submit in php

if(isset($_POST['submit']){
//Your Code Here
}
Posted by: Guest on April-15-2021
-2

isset in php

//with new features in new PHP versions like 7
//you can simplify writing of isset in the following way,
//old way of isset to display name if name variable is not null
echo isset($name) ? $name : "no name"
 //new and simple way with null coalescing operator
echo $name ?? "no name"
Posted by: Guest on November-25-2020

Browse Popular Code Answers by Language