ExecuteSubmitInstruction (open)
Execute a submit instruction
Syntax
LOADLIB "mod::system/lib/webserver.whlib";
MACRO ExecuteSubmitInstruction(RECORD instr)
Parameters
RECORD instr
Submitinstruction
RECORD form
Form data (only for type 'form')
STRING form.action
Form action URI
STRING form.method
Form method (allowed values: 'GET', 'POST')
RECORD ARRAY form.vars
Form variables to post
STRING form.vars.name
Name of the variable
STRING form.vars.value
Value of the variable
STRING type
Instruction type ('reload', 'redirect', 'form', 'postmessage', 'close')
STRING url
Redirect URL (only for type 'redirect')
Description
Executes a reload, redirect, form submission or a message to the parent window Types of instruction:
- "reload": Reloads the current page (redirect to GetRequestURL())
- "redirect": Redirect to a specific target URL
- "form": Submits a form to an URL (client-side)
- "postmessage": Posts a message to the window.parent
- "close": Close the current page