Returns the value of the specified variable from the array of parameters passed in to a script via GET, POST, or COOKIE HTML method.
Syntax
pm_get_gpc ($name, $default_value)
Parameters
name
A string value that specifies the name of a variable to look in the array of parameters set via GET, POST, or COOKIE.
default_value
A boolean value that is true if it is necessary to return the default value of this variable from the common array of parameters set via GET, POST, and COOKIE in case the specified variable has not been set in it. By default, it is set to false.
Returns
A string value of the specified variable.
Remarks
In case the parameter name is specified incorrectly and Plesk fails to find it in the global array of parameters, it throws Plesk fatal exception.
Include: pm.php.