<?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: Pass Variables</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Pass Variables</description>
<language>en</language>
<pubDate>Mon, 04 May 2026 03:37:38 +0000</pubDate>

<item>
<title>cdixon on "Pass Variables"</title>
<link>https://www.machform.com/forums/topic/pass-variables#post-16356</link>
<pubDate>Fri, 02 Nov 2012 03:12:17 +0000</pubDate>
<dc:creator>cdixon</dc:creator>
<guid isPermaLink="false">16356@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;i am trying to get the $url_data code above to work in version 3.3 of the software.&#60;br /&#62;
I still check the redirect option in the form software, but it goes to that url rather than using the new code in the includes/post-functions.php.&#60;br /&#62;
Can you give updated code for version 3.3?&#60;br /&#62;
thanks
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Pass Variables"</title>
<link>https://www.machform.com/forums/topic/pass-variables#post-8241</link>
<pubDate>Thu, 31 Dec 2009 06:35:04 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">8241@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Sorry, I mention the wrong filename, it should &#34;post-functions.php&#34; file, I've edited my previous post. Thank you.&#60;/p&#62;
&#60;p&#62;Otherwise you can use SESSION variable to pull out machform data into your redirect page, look at to this post for the method :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission?replies=13#post-3170&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/how-to-limit-access-to-redirect-page-after-submission?replies=13#post-3170&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>mblackwood on "Pass Variables"</title>
<link>https://www.machform.com/forums/topic/pass-variables#post-8240</link>
<pubDate>Thu, 31 Dec 2009 04:04:35 +0000</pubDate>
<dc:creator>mblackwood</dc:creator>
<guid isPermaLink="false">8240@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Has the code changed? My helper-functions.php file is only about 514 lines and does not contain this code. Perhaps it has been moved to another file?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Pass Variables"</title>
<link>https://www.machform.com/forums/topic/pass-variables#post-4938</link>
<pubDate>Fri, 06 Mar 2009 22:32:31 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4938@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I see.. you can try this one, edit your &#34;includes/post-functions.php&#34; Try to search around line 939 ~ 951, you will see this code : &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;foreach ($table_data as $key=&#38;gt;$value){

	if($value == &#38;#39;&#38;#39;){ //don&#38;#39;t insert blank entry
		continue;
	}
	$value		    = mysql_real_escape_string($value);
	$field_list    .= &#38;quot;&#38;lt;back&#38;gt;$key&#38;lt;back&#38;gt;,&#38;quot;;
	$field_values  .= &#38;quot;&#38;#39;$value&#38;#39;,&#38;quot;;

	if(!empty($value)){
		$has_value = true;
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace with &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$url_data = &#38;#39;&#38;#39;;
foreach ($table_data as $key=&#38;gt;$value){

	if($value == &#38;#39;&#38;#39;){ //don&#38;#39;t insert blank entry
		continue;
	}
	$value		    = mysql_real_escape_string($value);
	$field_list    .= &#38;quot;&#38;lt;code&#38;gt;$key&#38;lt;/code&#38;gt;,&#38;quot;;
	$field_values  .= &#38;quot;&#38;#39;$value&#38;#39;,&#38;quot;;

	if(!empty($value)){
		$has_value = true;
	}

	if (($form_id == 23) &#38;#38;&#38;#38; ($key != &#38;#39;date_created&#38;#39; &#38;#38;&#38;#38; $key != &#38;#39;ip_address&#38;#39;)) {
		//generate get variable
		$url_data .= $key . &#38;#39;=&#38;#39; . $value . &#38;#39;&#38;#38;&#38;#39;;
	}
}

if ($form_id == 23) {
if (!empty($url_data) &#38;#38;&#38;#38; $url_data != &#38;#39;&#38;#39;)
	$url_data = substr($url_data,0,-1);
	$process_result[&#38;#39;form_redirect&#38;#39;]  = &#38;quot;http://localhost:8888/test.php?&#38;quot; . $url_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The code will work for form 23 and redirect to &#34;http://localhost:8888/test.php&#34; with all element data on GET variable.
&#60;/p&#62;</description>
</item>
<item>
<title>IFX on "Pass Variables"</title>
<link>https://www.machform.com/forums/topic/pass-variables#post-4937</link>
<pubDate>Fri, 06 Mar 2009 21:00:04 +0000</pubDate>
<dc:creator>IFX</dc:creator>
<guid isPermaLink="false">4937@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yeah, I saw that one.  I just didn't know if there was a way to pass all variables easier instead of having to edit each form variable with code.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Pass Variables"</title>
<link>https://www.machform.com/forums/topic/pass-variables#post-4926</link>
<pubDate>Fri, 06 Mar 2009 13:30:10 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">4926@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Maybe this post can help you&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/custom-action-url-and-usage-field-data?replies=2#post-4093&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/custom-action-url-and-usage-field-data?replies=2#post-4093&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>IFX on "Pass Variables"</title>
<link>https://www.machform.com/forums/topic/pass-variables#post-4924</link>
<pubDate>Fri, 06 Mar 2009 10:23:43 +0000</pubDate>
<dc:creator>IFX</dc:creator>
<guid isPermaLink="false">4924@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Is there a way I can pass all of the variables from my submitted form to my redirect page?  So basically it will take the variables, pass it to the redirect so I can say something like Thank you JOHN for your order....then populate a simple paypal buy now button?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
