sa_param


Purpose

Determines whether the specified parameter is in the parameter list, and if it is, returns its value.

Syntax

sa_param (context, params, name, data, datalen);

SA_CTX *context;
SA_PARAMS *params;
SA_CHAR *name;
SA_CHAR **data;
SA_INT datalen;

Parameters

context Server context.

params The parameter list.

name The name of the parameter of interest.

data A pointer to the parameter value returned.

func The command handler.

Returns

SA_SUCCEED if the function is successful; SA_FAIL otherwise.

Comments

The parameter list is constructed from the URL. Both GET and POST arguments are parsed into name/value pairs and saved in the parameter list.

See Also

None