Retrieves a GET or POST input parameter value. The function first attempts to retrieve the parameter from the GET query string and if no value is returned, the function checks for a POST input parameter with the same name. If no value is returned by a GET or POST input parameter, the function returns the default value specified in the function call.
CCGetParam(ParameterName, DefaultValue)
Name | Type | Description | Required |
---|---|---|---|
ParameterName | string | Name of the GET or POST parameter whose value is to be returned. | Yes |
DefaultValue | string | The value to be assigned of the given parameter has no value. It can be an empty string. | Yes |