web_request->param
Returns query or post parameter values.
Target
Signature
1web_request->param(name::string, joiner= ?)Returns query or post parameter values.
web_request->param is called with member syntax on a receiver value. web_request->param belongs at the request or response boundary. Treat visitor input as untrusted, validate before use, and encode values before writing them into HTML.
Parameters
name- Required value of type
string. Supplynamepositionally unless the signature shows a keyword form. joiner- Optional value. Supply
joinerpositionally unless the signature shows a keyword form.
Examples
Basic call
1web_request->param('q')The example belongs near a request or response boundary; validate visitor input before trusting it.