Name

request — retrieve form data

Synopsis

string request(name);
string name;

Description

Retrieves an item of form data identified by the name name. This could be either data from the query string of a GET request or data from the HTTP header of a POST request.

Example 46. request Example

// Get the users name from the form on the previous page
string name = request("Name");
if(strlen(name) == 0)
    name = "No name was given";