if post variable is not defined php code example Example: php see if undefined if (isset($variable)) { /* do something */ };