<?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 Unique Query To Redirect URL</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Pass Unique Query To Redirect URL</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 21:03:04 +0000</pubDate>

<item>
<title>aarenhofferth on "Pass Unique Query To Redirect URL"</title>
<link>https://www.machform.com/forums/topic/pass-unique-query-to-redirect-url#post-21398</link>
<pubDate>Wed, 09 Jul 2014 00:51:39 +0000</pubDate>
<dc:creator>aarenhofferth</dc:creator>
<guid isPermaLink="false">21398@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I'm trying to pass a unique query to the redirect url of a form. I thought I could do this by defining a variable in the display template which is passed to post-functions.php, however, it doesn't work.&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
	$couponTitle = &#34;test&#34;; // Added This&#60;br /&#62;
	require(&#34;/site.com/web/content/form/machform.php&#34;);&#60;br /&#62;
	$mf_param['form_id'] = 1;&#60;br /&#62;
	$mf_param['base_path'] = 'http://www.site.com/form/';&#60;br /&#62;
	display_machform($mf_param);&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;This is what was added to post-functions.php around line 915:&#60;/p&#62;
&#60;p&#62;if($couponTitle != &#34;&#34;) {&#60;br /&#62;
     $process_result['form_redirect']  = $form_redirect . &#34;?coupon=&#34; . $couponTitle;&#60;br /&#62;
} else {&#60;br /&#62;
     $process_result['form_redirect']  = $form_redirect;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;This is basically so that I can use one form which sends the user to different redirects depending on which page they filled the form out on.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
