Important: The difference between $WBV and $WBVR functions appears when they are used in wbsp file that receives data sent by form with ENCTYPE="multipart/form-data", in which case function $WBV will always return empty string if used in input syntax $wbv{varname}, and $WBVR will always return empty string when used in report syntax $WBVR[varname]. In all other cases there is no difference between these two functions.
Availability
$WBVR is available for use with all WBSP commands:
Syntax
$WBVR{varname}
$WBVR[varname]
Parameters
varname - the name of requested variable sent by client as a part of request
using either POST or GET method. It can be either WhizBase variable or any other
variable sent by client
Returns
The value of the variable varname.
Example
After running this example, the resulting page in browser, may look like this:
After submitting the form the resulting page will change to something like this:
And in directory where wbsp file was located you will find file
Faikup.log with upload details. If you change the line
WB_UploadLog=$wbvr{name}up.log
to WB_UploadLog=$wbv{name}up.log
and submit
the same form data again, the log file name will be up.log (without
value of form variable Name). This will happen because $WBV returns an
empty string when tries to read value of a variable submitted using multipart
form.