Sambar Server Documentation

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, valuep, valuelenp);

SA_CTX *context;
SA_PARAMS *params;
SA_CHAR *name;
SA_CHAR **valuep;
SA_INT *valuelenp;

Parameters

context Server context.

params The parameter list.

name The name of the parameter of interest.

valuep A pointer to the parameter value returned.

valuelenp A pointer to the length of the parameter returned.

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

sa_param_set

© 1998 Sambar Technologies. All rights reserved. Terms of Use.