Lasso Soft Inc. > Home

[client_params_9]

Linkclient_params_9
AuthorJolle Carlestam
CategoryClient
Version9.x
LicensePublic Domain
Posted13 Oct 2009
Updated10 Nov 2010
More by this author...

Description

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.

New version 2010-11-11 based on same code as action_params but without the inline sensing parts.

Sample Usage

client_params;
client_params('post');
client_params(-method = 'get');

Source Code

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.

 {
/*
	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)


?>

Related Tags

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft