$WBVR - unprocessed request variable

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

<!--
[FormFields]
wb_command=r
wb_allowmultipart=T
[Upload]
WB_Disallow=![jpg,gif,txt]
WB_Overwrite=F
WB_MaxFSize=24576
WB_UploadLog=$wbvr{name}up.log
-->
<!--WB_BeginTemplate-->
<html>
<head>
<title>WBVR example</title>
</head>
<body>
$wbif["$wbv[name]"<>""
|
<div style="position:relative;float:left;width:49%;border:1px solid #000000;"><b>WBV</b><br>$wbv[name]</div>
<div style="position:relative;float:left;width:49%;border:1px solid #000000;"><b>WBVR</b><br>$wbvr[name]</div>
|
<form action="$wbe[script_name]" method="post" ENCTYPE="multipart/form-data">
Enter your name, please: <input type="text" name="name" size="20"><br>
Please select the file (*.jpg;*.gif;*.txt - maximum size 24 KB): <input type="file" name="File" size="20">
<input type="submit" name="Sbutt" value="submit">
</form>
]
</body>
</html>

After running this example, the resulting page in browser, may look like this:

Enter your name, please:
Please select the file (*.jpg;*.gif;*.txt - maximum size 24 KB):

After submitting the form the resulting page will change to something like this:

WBV
Faik
WBVR

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.