Usage:
This shortcode will capture an existing REQUEST variable with the given name and display if available.
This shortcode does NOT supports conditional branching with [ELSE_request_Name].
Shortcode nesting is NOT supported.
Parameters:
Name | The variable name that you wish to display in place of the shortocde. Default: none. Required: yes. |
index | If the variable is an array, indicate the array index to retrieve. For additional depth, separate additional keys with the pipe symbol (“|”). For example: if the desired array element is $_REQUEST[‘Name’][‘customer’][‘FirstName’], you would specify [i4w_request_Name index=’customer|FirstName’].br>Default: none. Required: no. |
default | Defines the value to return is the variable is not present. Default: none. Required: no. |
Example:
[i4w_request_ContactEmail] Returns the $_REQUEST variable named "ContactEmail".
[i4w_request_Cart index='date'] Returns the $_REQUEST variable named "Cart[date]".
[i4w_request_Cart index='customer|name'] Returns the $_REQUEST variable named "Cart[customer][name]".
[i4w_request_Cart index='customer|email'] Returns the $_REQUEST variable named "Cart[customer][email]".
API:
There is no API function equivalent for this shortcode.