This method returns the Query String and individual pieces of it. The method supports both numeric,positional parameters and named parameters. Positional parameters are great for grabbing request information:
where each parameter can be accessed using Request.QueryString(1) through QueryString(4). Web Connection typically uses the first two positional parameters to identify the request that is being accessed so wwDemo is the class to call and ClientForm is the method inside of that class for example. Parameters 3 and 4 are application specific parameters.
URLEncoded parameters are better for optional parameters and look like this:
Essentially spaces are converted to + signs, keys are separated by & and any control characters are converted to hex representations preceeded by a % sign.
You can mix positional and URLEncoded parameters by adding a separating ~ between the posititional parms and the named ones:
which allows you to use both GetCGIParameter(2), which returns URLTest or QueryString("Company") which returns West Wind.
String value of the requested key.
This parameter can either be a string or numeric value.
- Named parameter string
The key of a named parameter is returned. For example:
where Company and Name would be key values to retrieve.
- Positional numerical value
You can also pass a numeric value to get at positional parameters separated by ~. In the above example, QueryString(1) returns wwDemo, QueryString(2) TestPage.
Make sure when mixing positional and named parameter that you separate the two with a ~ and & as the link above does.
See also:Class wwrequest | wwRequest::ServerVariables | wwRequest::Form
Comment or report problem with topic