AddVariableToUrl (open)
Rewrite an URL to add a variable
Syntax
LOADLIB "wh::internet/urls.whlib";
STRING FUNCTION AddVariableToUrl(STRING url, STRING varname, STRING varvalue)
Parameters
STRING url
URL to modify
STRING varname
Name of the variable to add
STRING varvalue
Value to set this variable to
Return value
STRING
The rewritten URL
Description
This function adds the requested variable to a URL, takes care of proper URL encoding and adding the necessary '?' and '&" characters to the URL. It will not try to eliminate duplicate variables on the URL