<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Appnitro Software Forums Topic: Adding Hidden Variables to MachForms</title>
<link>http://www.appnitro.com/forums/</link>
<description>Appnitro Software Forums Topic: Adding Hidden Variables to MachForms</description>
<language>en</language>
<pubDate>Fri, 10 Sep 2010 20:48:37 +0000</pubDate>

<item>
<title>redityo on "Adding Hidden Variables to MachForms"</title>
<link>http://www.appnitro.com/forums/topic/adding-hidden-variables-to-machforms#post-5150</link>
<pubDate>Mon, 23 Mar 2009 13:54:35 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">5150@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hi Pete,&#60;/p&#62;
&#60;p&#62;How you parse the data from previous form to registration form ? do you use &#34;GET/POST&#34; method ? If it's so let say you have &#34;registration form&#34; with this url :&#60;/p&#62;
&#60;p&#62;&#34;http://www.yourdomain.com/registration.php&#34;&#60;/p&#62;
&#60;p&#62;I assume you send GET data from your previous form, the url should be like this :&#60;/p&#62;
&#60;p&#62;&#34;http://www.yourdomain.com/registration.php?data=2009-01-01&#34;&#60;/p&#62;
&#60;p&#62;To get that variable data, you should edit &#34;view-functions.php&#34;. If you consider you use &#34;text field&#34; you can go to around line 40, you will see this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put this code exactly above that line&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($_GET[&#38;#39;data&#38;#39;]) &#38;#38;&#38;#38; $element-&#38;gt;id == &#38;#39;1&#38;#39; &#38;#38;&#38;#38; $_GET[&#38;#39;id&#38;#39;] == &#38;#39;2&#38;#39;)
{
	$element-&#38;gt;default_value  = $_GET[&#38;#39;data&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;in there I assume text element id = '1' in form id = '2', make sure you've change with yours
&#60;/p&#62;</description>
</item>
<item>
<title>MrLinguaFranca on "Adding Hidden Variables to MachForms"</title>
<link>http://www.appnitro.com/forums/topic/adding-hidden-variables-to-machforms#post-5131</link>
<pubDate>Fri, 20 Mar 2009 20:55:25 +0000</pubDate>
<dc:creator>MrLinguaFranca</dc:creator>
<guid isPermaLink="false">5131@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hello all,&#60;/p&#62;
&#60;p&#62;I've just started using MachForms and am up and running but need your help with something. Sending forms is seldom just a one page but requires passing variables from one page to another. On the previous page the user selects a date range and then they click 'Continue', whereupon they're taken to my registration form (created on MachForm). I need my MachForm to pick up that date variable from the previous page because I want it to appear in the resultant mail. &#60;/p&#62;
&#60;p&#62;I read a post here that suggested selecting the 'Admin Option' could be used to make a hidden form field but I haven't had any luck with this. They simply keep appearing as text fields. &#60;/p&#62;
&#60;p&#62;So, does anyone know how to do this?&#60;/p&#62;
&#60;p&#62;Thanks in advance.&#60;/p&#62;
&#60;p&#62;Pete.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
