Unexpected results may occur if the parameter and variable data types are incompatible.
The function will return NULL where the parameter name is not defined.
In a Magic xpa program called by a hyperlink:
1. The program may receive HTTP environment variables as global parameters that can be accessed by the GetParam function.
2. Sequential retrieving of arguments using the 'MGARG##' convention can only be used if the Arguments value is specified in the HTML form or hyperlink and contains the comma delimited arguments names.
3. If the value starts with -A or -N, these prefixes will be removed from the value since they are directives to the engine regarding the value type. If you want them to remain, change your HTML page to have an additional hidden input field that is updated with an additional prefix, for example: -A-Aabcd. This can be done by using a JavaScript function to update a hidden additional field as follows:
function confirm() {
document.getElementById("Username1").value = "-A" + document.getElementById("Username2").value;
}
You can then call this function by adding the following to the form tag in the HTML page: onsubmit="return confirm();".
|