<?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>MachForm Community Forums Topic: Adding Hidden Variables to MachForms</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Adding Hidden Variables to MachForms</description>
<language>en</language>
<pubDate>Sat, 07 Nov 2026 01:30:34 +0000</pubDate>

<item>
<title>hlbauer on "Adding Hidden Variables to MachForms"</title>
<link>https://www.machform.com/forums/topic/adding-hidden-variables-to-machforms#post-14710</link>
<pubDate>Sat, 12 May 2012 03:41:08 +0000</pubDate>
<dc:creator>hlbauer</dc:creator>
<guid isPermaLink="false">14710@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I'm not sure this is the right solution for me. I won't know what the values will be in the url string. They'll be different for every user (search terms used to find the form).
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Adding Hidden Variables to MachForms"</title>
<link>https://www.machform.com/forums/topic/adding-hidden-variables-to-machforms#post-14702</link>
<pubDate>Fri, 11 May 2012 20:26:16 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">14702@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;No need any modification for this. As of v3.2 you can do this already:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/doc-url-parameter&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/doc-url-parameter&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>hlbauer on "Adding Hidden Variables to MachForms"</title>
<link>https://www.machform.com/forums/topic/adding-hidden-variables-to-machforms#post-14687</link>
<pubDate>Fri, 11 May 2012 05:27:59 +0000</pubDate>
<dc:creator>hlbauer</dc:creator>
<guid isPermaLink="false">14687@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I know this is an old thread, but I'm attempting to do the same thing and can't quite get it to work.&#60;/p&#62;
&#60;p&#62;I have two hidden fields set up on my form using the css class &#34;hidden&#34;. I need these fields to auto fill information from the url. &#60;/p&#62;
&#60;p&#62;Example url: &#60;a href=&#34;http://www.Ignite-Edu.net?source=AdWords&#38;#38;keyword=KEYWORD&#34; rel=&#34;nofollow&#34;&#62;www.Ignite-Edu.net?source=AdWords&#38;#38;keyword=KEYWORD&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I've modified the &#34;view-functions.php&#34; file by adding the following code directly above the line containing&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$element_markup = &#38;lt;&#38;lt;&#38;lt;EOT&#60;/code&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($_GET[&#38;#39;keyword&#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;7&#38;#39;){
			$element-&#38;gt;default_value  = $_GET[&#38;#39;keyword&#38;#39;];
		}		

		if (!empty($_GET[&#38;#39;source&#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;6&#38;#39;){
			$element-&#38;gt;default_value  = $_GET[&#38;#39;source&#38;#39;];
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Form ID is 1&#60;br /&#62;
keyword field is 7&#60;br /&#62;
source field is 6&#60;/p&#62;
&#60;p&#62;The form can be seen here: &#60;a href=&#34;http://envistaacademies.com/machform/view.php?id=1&#34; rel=&#34;nofollow&#34;&#62;http://envistaacademies.com/machform/view.php?id=1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I've tested this a few times and can't get the hidden fields to pull the keyword or source from the url string.&#60;/p&#62;
&#60;p&#62;Any help you can offer is appreciated!
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Adding Hidden Variables to MachForms"</title>
<link>https://www.machform.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@https://www.machform.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>https://www.machform.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@https://www.machform.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>
