Errors ,errors

Well, you already do it in the first line of your posted code.

One way is to use isset() to check, but empty() will check whether the variable exists, and whether it’s empty. So isset() will return true if the variable exists whether it is empty or not, whereas empty() will return true if the variable either does not exist, or does exist and is empty.

1 Like