Get input parameter.
To obtain input parameters from an incoming request, use input-param. For web applications, input parameters are specified as name/value pairs of "GET" or "POST" input fields. The value of input parameter <name> will be in the string variable with the same name. Input parameters are trimmed for whitespace (both on left and right). Input parameter name can be made up of alphanumeric characters or underscore only and cannot start with a digit.
A predefined input parameter "req" must always be present - it's the name of the
request which determines what .v source file handles it - see
vv for more.
For example, for an HTML form input parameter named "param1" with value "some_value":
<input type='hidden' name='param1' value='some_value'>
you can get this parameter and print out its value by using:
input-param param1
p-web param1
the output of which is "some_value".
If the URL used is
http:
then you can get values of parameters "par1" and "par2" with:
input-param par1
input-param par2