Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.
<?LassoScript
/**!
client_params
Returns a static array of GET/POST parameters passed from the client.
An optional param "method" can direct it to return only post or get params
Example usage:
client_params;
client_params('post');
client_params(-method = 'get');
**/
define client_params(method::string = '') => {
/*
2010-11-11 JC New version based on same code as action_params but without the inline sensing parts.
*/
if (web_request)
#method == 'get' ? return web_request -> queryParams
#method == 'post' ? return web_request -> postParams
return tie(web_request -> queryParams, web_request -> postParams) -> asStaticArray
/if
return staticarray
}
define client_params(-method::string = '') => client_params(#method)
?>