CRequest::getForm

The CRequest::getForm function retrieves the value of a specified name which was read by POST or GET method.

chchar * getForm(
chchar * name // containing the name of the specified item
);



Return Type

chchar *
Upon successful completion, a value for the specified name read by POST or GET method is returned. Otherwise, NULL is returned.


Parameters

name
A string which contains the name of the specified item.


Remarks

If there are multiple values for a specified name which was read by POST or GET method, the first value is returned by this function. The CRequest::getForms function retrieves all values of items with the specified name and the CRequest::getFormNameValue function retrieves all pairs of name and value.


See Also

CRequest, CRequest::getFormNameValue, CRequest::getForms

Example