if (isset($_POST['item'])) { do this .... } else echo 'error';
$var = ""; if (isset($var)) { echo "set"; } else { echo "not set"; }
$var = $_POST['var']; if (strlen(trim($var)) <0) { // the variable is either empty or not set ] else { // there is something in the variable }
Jump To Top of Thread