mbr_http_get
Usage
This shortcode returns the contents of the specified $_GET variable.
Parameters
| Parameters | Description |
| :--------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| var | The name of the $_GET variable to retrieve.
Default: none.
Required: yes. |
| index | If the $_GET variable is an array, indicate the array index to retrieve. For additional depth, separate additional keys with the pipe symbol (" l "). For example: if the desired array element is $_GET['name']['customer']['first_name'], you would specify the parameters var='name' index='customer | first_name'.
Default: none.
Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_http_get].
Nesting
Shortcode nesting within is NOT supported.
Examples
- Example 1
- Example 1
Returns the contents of $_GET['test_get'] if it exists.
[mbr_http_get var='test_get']
Returns the contents of $_GET['test_get']['customer']['first_name'] if it exists.
[mbr_http_get name='test_get' index='customer|first_name']
API
There is no ActiveMember360 API function equivalent for this shortcode. Please use standard PHP functions.