Vely logo what is  |  why  |  install  |  tutorials  |  examples  |  documentation  |  license  |  about
Current release 10.4.36 (Beta). This page last updated on Jul 01 2022



Get input parameter.


input-param <name>


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://<your web server>/<your app>?req=some_request&par1=val1&par2=val2

then you can get values of parameters "par1" and "par2" with:

input-param par1
input-param par2


Requests ( non_request   after_request_handler   before_request_handler   input-param   request   startup_handler   url-param   vely_dispatch_request  )  SEE ALL (documentation)

Copyright (c) 2017-2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. This web page is licensed under CC-BY-SA-4.0.