i4w_ifrequest

Usage:

This shortcode is designed to check for the existence of a $_REQUEST variable and, given a value to check, for a value match. Any content embedded between the tags will be displayed if the criteria is met.

[ELSE_ifrequest] conditional branching is supported.

Shortcode nesting is supported:

[i4w_ifrequest1] thru [i4w_ifrequest19]

[ELSE_ifrequest1] thru [ELSE_ifrequest19]

Parameters:

get The name of the $_REQUEST variable for whose existence you are checking.
Default: none.
Required: yes.
val A value which the $_REQUEST variable must hold in order to evaluate to true.
Default: none.
Required: no.

Example:

Will display “Test REQUEST is set” if $_REQUEST[‘test_request’] exists.

Will display “Test REQUEST is set” if $_REQUEST[‘test_request’] exists AND its value is 123.

API:

There is no API function equivalent for this shortcode.