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 for setting the variable.

Description

The websSetVar procedure defines the value of a Form variable. If the variable is already defined, the value is updated. The variable is defined only 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"); 

Stability Classification

Stable.

See Also

websGetVar, websTestVar