Keap
Also available forActiveCampaign

[memb_post]

Summary
This shortcode reads a value from the $_POST superglobal and displays it on the page.

Description

This shortcode reads a value from the $_POST superglobal and displays it on the page. It is commonly used to display submitted form field values after a POST request.

Shortcode Examples

Display a submitted form field named first_name:

[memb_post name="first_name"]

Display a submitted value with a default if not present:

[memb_post name="first_name" default="Guest"]

Apply text formatting to the output:

[memb_post name="first_name" txtfmt="strtoupper"]

Shortcode Parameters

name(Required) Comma-delimited list of keys to look up in the $_POST variable.
defaultThe default value to use if the key is empty. Defaults to an empty string.
txtfmt(Optional) Comma-delimited list of text processing functions to apply to the output.
captureCaptures the shortcode output and routes it to a variable for later use.
beforeText to display before the output value.
afterText to display after the output value.
htmlattrIf set, outputs the value as an HTML attribute rather than as visible text.

Additional Information

Using [memb_post] with no parameters displays all $_POST variables for debugging purposes. This shortcode only works when the page receives a POST request, such as after a form submission.

Shortcode Attributes

ConditionalNo
NestableNo
Accepts formattingYes
CapturableYes