Inserting a GET/POST/GLOBAL variable into a web page
How to insert GET, POST, or GLOBAL variables into a web page.
Content available to a web page as a GET, POST, or GLOBAL variable in PHP can be inserted into your web page using a template variable.
To insert content from a GET variable, such as in the request “/my_page.php?lastname=Robinson”, use the following variable:
<xphp var=”lastname” type=”get”/>
If the “lastname” variable is a POST variable, simply change the “type” attribute to “post”:
<xphp var=”lastname” type=”post”/>
If the “lastname” variable is a GLOBAL variable, omit the “type” attribute completely:
<xphp var=”lastname”/>
Note: When inserting content from a GET or POST variable, the output will obey any input filters configured for the page, and by default will have any HTML tags stripped.
This functionality is provided by the open source XPHP project. Advanced users may wish to tap into other XPHP functionality, such as casting variables by type. For more information, please visit: http://technologies.whitewhale.net/xphp/.