Using HTTP Request Variables

This page uses an HTML Form to demonstrate the Hashtag Buckets Reserved for Request Variables.   HTTP GET variables are available in the Hashtag Buckets: get, url, and request.   HTTP POST variables are available in the Hashtag Buckets: post, and request.  

The following HTML Form posts back to this page, setting ?test=Value+from+URL in the URL.


Note:  Hashtag Markup is shown below <# in bold #>.   The value generated by processing the Hashtag Markup, and applying any Variable Contexts, is injected into this HTML page after the ⇒ symbol.  
<#[url.test as html]#> ⇒ 
<#[get.test as html]#> ⇒ 
<#[post.test as html]#> ⇒ 
<#[request.test as html]#> ⇒ 


Note:  The Hashtag Framework uses the PHP Global Variable $_REQUEST to serve as the Request Bucket.   PHP can be configured to include Cookie values in $_REQUEST, but this is not the default setting.   The order that values are added to $_REQUEST can also be configured; POST values overwrite GET values by default.  

The Hashtag Markup Language provides many methods for setting variable values, and using them later.

Variable Buckets can hold many values, processed together.   Variable Contexts enable safe injection anywhere.