i4w_post_name
This shortcode will capture an existing POST variable with the given name and display if available.
[ELSE_post_Name] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
Section titled “Parameters”| Parameter | Description | Default | Required |
|---|---|---|---|
| Name | The variable name that you wish to display in place of the shortcode. | None | 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 $_POST[‘Name’][‘customer’][‘FirstName’], you would specify [i4w_post_Name index=‘customer|FirstName’]. | None | No |
| default | Defines the value to return if the variable is not present. | None | No |
Example
Section titled “Example”[i4w_post_ContactEmail]Returns the $_POST variable named “ContactEmail”.
[i4w_post_Cart index='date']Returns the $_POST variable named “Cart[date]”.
[i4w_post_Cart index='customer|name']Returns the $_POST variable named “Cart[customer][name]”.
[i4w_post_Cart index='customer|email']Returns the $_POST variable named “Cart[customer][email]”.