webCOMAND

#GET

Return the value of an HTTP GET or POST query parameter, either through the URL query string or HTML form submission.  If a value by the same name appears in both GET and POST, the POST value will be used.

This statement is only useful in a Dynamic Publication Procedure.

Prototype

string #GET(string $key)

Parameters

  • key - HTTP GET or POST query parameter name to retrieve.

Example

#NEW($Date)#GET('date')#ENDNEW
Date: $Date

Result

A URL request like index.php?date=1975-12-20 would produce the following result.

Date: 1975-12-20