WEB Server Quick Start Page 144
Variables
There are three global variables: $_POST, $_ENV, and $_SERVER. These variables are
used in a similar way to their PHP counterparts. The show controller web-script does not
support local variables and does not allow the value of a variable to be changed directly
(see the section on Functions).
The $_POST variable is used to access the value of data submitted to the server by an
HTTP POST request. This is typically done using an HTML form, but can also be
accomplished using AJAX (Asynchronous JavaScript and XML) or Flash.
The $_ENV variable is used to access the value of variables from the currently running
show. These values can be accessed by the variable name or index.
The $_SERVER variable provides access to values stored within the show controller. A
complete table of the values available from the server can be found below.
To access a value within any of these variables, the proper index must be used. If a value
is posted using an HTML form, the index will be the name of the form item. For
example, the value of a submit button named "submit" can be retrieved as
$_POST["submit"]. An open and closed bracket always surrounds the index. The
$_SERVER variable uses similar index names as follows: