Usage:
This shortcode is designed to check for the existence of a $_POST 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_is_http_post] conditional branching is supported.
Shortcode nesting is supported:
[mbr_is_http_post1] thru [mbr_is_http_post19]
[ELSE_is_http_post1] thru [ELSE_is_http_post19]
Parameters:
var | The name of the $_POST variable for whose existence you are checking. Default: none. Required: yes. |
val | A value which the $_POST variable must hold in order for the shortcode to evaluate to true. Default: none. Required: no. |
Example:
Will display “Test POST is set” if $_POST[‘test_post’] exists.
[mbr_is_http_post var='test_post'] Test POST is set [ELSE_is_http_post] Test POST is NOT set [/mbr_is_http_post]
Will display “Test POST is set” if $_POST[‘test_post’] exists AND its value is 123.
[mbr_is_http_post var='test_post' val='123'] Test POST is set to 123 [ELSE_is_http_post] Test POST is NOT set to 123 [/mbr_is_http_post]
API:
There is currently no ActiveMember360 API function equivalent for this shortcode.