Programming Reference:Functions:CCGetParam

From CodeCharge Studio Community Wiki

Jump to: navigation, search

Description
Retrieves a value of the GET or POST input parameter. 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 the GET or POST input parameter, the function returns the default value specified in the function call.

Location
Common

Syntax

CCGetParam(name, value)

Return value
string


Parameters

Name Type Description Required
name string Name of the GET or POST parameter whose value is to be returned. Yes
value string The value to be assigned of the given parameter has no value. It can be an empty string. Yes


See also:
CCGetFromGet function, CCGetFromPost function

Personal tools