The filter_has_var() function checks if a variable of a specified input type exist.
Returns TRUE on success or FALSE on failure.
Parameter | Description |
---|---|
type | Required. Specifies the type to check for Possible input types:
|
variable | Required. Specifies the variable to check |
In this example the input variable "name" is sent to the PHP page:
The output of the code should be something like this: