Request Tokens

Tokens provide you with the ability to use information about the current HTTP Request at run-time such as the current URL, the referring URL, etc. Note that some or none of these settings may be available. If they are, the information may not be useful. Internet security/privacy software can block many of these settings and other settings can be forged for benign or malicious reasons. This information is passed through the DotNetNuke filters to remove markup, scripting, and SQL.

Syntax

[[Request:requestSettingName]]

[[Form:parameterName]]

[[Url:parameterName]]
 

Remarks

 

Back to top

Example

<xmod:template>
  ...
  <HeaderTemplate>
    <h1>HTTP Request Information</h1>
    <p>
      Referrer: [[Request:Referrer]]<br />
      Current URL: [[Request:URL]]<br />
      User's IP Address: [[Request:HostAddress]]<br />
      Value of URL Parameter 'param1' is '[[Url:param1]]'<br />
      Value of POST Parameter 'FormParam1' is '[[Form:FormParam1]]'<br />
    </p>
  </HeaderTemplate>
  ...
</xmod:template>
Back to top