Form Variables

$_GET:

$_POST:

$_SERVER:

$_REQUEST:

User:

Example:

Validation Variables

$validate:

$form:

Example:

Email Variables

$submission:

Example:

To use dump() in twig, you will need to enable WP_DEBUG, or else dump will not work.

Sample 1 (validate contact-name and contact-email)

Sample 2 (validate message length)

Sample 3 (show city based on country select)