ExpressionEngine Docs

Request

The Request plugin allows you to get HTTP request variables in your templates.

get

Used to get a $_GET parameter in your template.

Parameters

name: Name of the GET variable you would like. Returns false if not found.

Example

{exp:request:get name="my-var"}

post

Used to get a $_POST parameter in your template.

Parameters

name: Name of the POST variable you would like. Returns false if not found.

Example

{exp:request:post name="my-var"}

get_post

Used to get a $_POST or $_GET parameter in your template.

Parameters

name: Name of the POST or $_GET variable you would like. Returns false if not found.

Example

{exp:request:get_post name="my-var"}

cookie

Used to get a cookie value in your template.

Parameters

name: Name of the cookie you would like. Returns false if not found.

Example

{exp:request:cookie name="my-var"}

ip_address

Used to get the IP address of the request in your template.

Example

{exp:request:ip_address}

user_agent

Used to get the User Agent of the request in your template.

Example

{exp:request:user_agent}

request_header

Used to get a request header value in your template.

Parameters

name: Name of the header you would like. Returns false if not found.

Example

{exp:request:request_header name="accept"}