SynopsisReturn the value of a Form variable. Prototype#include "webs.h" char_t *websGetVar(webs_t wp, char_t *var, char_t *default); Parameters
DescriptionThe websGetVar procedure looks up var in the Form table of variables. If the variable is not defined, the value of the default is returned. If default is NULL and the variable is not found, NULL will be returned. Form variables are created for each <input> form tag. The standard form variables are also defined. Return ValueReturns a pointer to a statically allocated string. Do not call bfree. Examplename = websGetVar(wp, "Name", "Peter Smith"); Stability ClassificationStable. See Also |