Capture form post data for use as ExpressionEngine tags

Evo Post 1.0

Capture your form post data and reuse the data in tags in your ExpressionEngine template. Simple to use; massively useful.

Usage

For ExpressionEngine enthusiasts, this add-on gives a whole new way of parsing data into templates for use with other native ExpressionEngine add-ons. For example:

<form action="{site_url}index.php/evopost/outputdata" method="post">
	<input type="hidden" name="hidden_info" value="hidden">
	<input type="text" name="second_txt_box">
	<input type="checkbox" name="chkbox" value="1">
	<select name="dropdown">
		<option value="item 1">item 1</option>
		<option value="item 2">item 2</option>
		<option value="item 3">item 3</option>
	</select>
	<input type="submit" value="Test" name="submit">
</form>

This could output:

Using the following EE code:

{exp:evopost:getpostdata}
{ep_hidden_info}
{ep_second_txt_box}
{if "{ep_chkbox}"}{ep_chkbox}{if:else}0{/if}
{ep_dropdown}
{/exp:evopost:getpostdata}

As you can see, no PHP code required – simply add an “ep_” prefix then the form name, and this will output your posted variable to either display on the page or become an input for another ExpressionEngine tag.

{ep_posted} can be used to detect if post data has been sent. Responses are “yes” or “no”

Note – All unfound {ep_vars} will return as blank after the function has run.

.(JavaScript must be enabled to view this email address)