ExecuteSubmitInstruction

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')

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: