websSetVar GoAhead WebServer API GoAhead EMF

Synopsis

Set the value of a Form variable

Prototype

#include "webs.h" 

void websSetVar(webs_t wp, char_t *var, char_t *value);

Parameters

wp Web server connection handle
var The Form variable
value The value to set the variable to

Description

The websSetVar procedure defines the value of a Form variable. If the variable is already defined, the value is updated. The variable is only defined for this web browser connection and its value must be non-NULL. Values are stored in a fast access symbol table using a hash lookup mechanism.

Return Value

None

Example

  websSetVar(wp, "Name", "Peter Smith");

See Also

Standard form variables, websGetVar, websTestVar