mbr_is_http_request
Usage
This shortcode determines the content to be included based upon the existence of the specified $_REQUEST variable and it's optionally specified value.
Parameters
Parameters | Description |
---|---|
var | The name of the $_REQUEST variable for whose existence you are checking. Default: none. Required: yes. |
val | A value to which the $_REQUEST variable will be compared to evaluate to true. Default: none. Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
[ELSE_is_http_request] conditional branching is supported.
Nesting
Shortcode nesting is supported:
[mbr_is_http_request1] thru [mbr_is_http_request19]
[ELSE_is_http_request1] thru [ELSE_is_http_request19]
[/mbr_is_http_request1] thru [/mbr_is_http_request19]
Examples
- Example 1
- Example 2
- Example 3
Will display "Test REQUEST is set" if $_REQUEST['test_request'] exists:
[mbr_is_http_request name='test_request']
Test REQUEST is set
[/mbr_is_http_request]
Will display "Test REQUEST is set" if $_REQUEST['test_request'] exists. Otherwise will display "Test REQUEST is NOT set":
[mbr_is_http_request name='test_request']
Test REQUEST is set
[ELSE_is_http_request]
Test REQUEST is NOT set
[/mbr_is_http_request]
Will display "Test REQUEST is set to 123" if $_REQUEST['test_request'] exists AND its value is equal to 123. Otherwise will display "Test REQUEST is NOT set to a value equal to 123":
[mbr_is_http_request name='test_request' val='123']
Test REQUEST is set to 123
[ELSE_is_http_request]
Test REQUEST is NOT set to a value equal to 123
[/mbr_is_http_request]
API
There is no ActiveMember360 API function equivalent for this shortcode. Please use standard PHP functions.