<?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: Multiple Redirect URL's</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Multiple Redirect URL's</description>
<language>en</language>
<pubDate>Sat, 07 Nov 2026 01:58:07 +0000</pubDate>

<item>
<title>yuniar on "Multiple Redirect URL's"</title>
<link>https://www.machform.com/forums/topic/multiple-redirect-urls#post-15883</link>
<pubDate>Wed, 05 Sep 2012 23:15:03 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">15883@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The above should work with multiple choice as well. However, the code is applicable for version 2, so the line numbers most likely has been changed if you are using version 3.
&#60;/p&#62;</description>
</item>
<item>
<title>mrbalderas on "Multiple Redirect URL's"</title>
<link>https://www.machform.com/forums/topic/multiple-redirect-urls#post-15873</link>
<pubDate>Wed, 05 Sep 2012 19:32:24 +0000</pubDate>
<dc:creator>mrbalderas</dc:creator>
<guid isPermaLink="false">15873@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Yuniar, can your reply 2 above work if I wanted to use this feature as a multiple choice field?  I would like to display my choices and when the radio button is selected and submitted it redirects to the appropriate URL.
&#60;/p&#62;</description>
</item>
<item>
<title>bmcrec on "Multiple Redirect URL's"</title>
<link>https://www.machform.com/forums/topic/multiple-redirect-urls#post-1263</link>
<pubDate>Tue, 01 Apr 2008 21:37:24 +0000</pubDate>
<dc:creator>bmcrec</dc:creator>
<guid isPermaLink="false">1263@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Once again, everything worked perfectly.&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Multiple Redirect URL's"</title>
<link>https://www.machform.com/forums/topic/multiple-redirect-urls#post-1253</link>
<pubDate>Mon, 31 Mar 2008 12:17:39 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1253@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ok, I assume you have done the modification as explained here:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/sending-html-email-back-to-submitter?replies=29&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/sending-html-email-back-to-submitter?replies=29&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You will need to modify your &#60;strong&#62;hooks/custom_hooks.php&#60;/strong&#62; file.&#60;br /&#62;
Change this part:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$email_content =&#38;lt;&#38;lt;&#38;lt;EOT
...Put your HTML content here.....
EOT;

$result[&#38;#39;body&#38;#39;]	= $email_content;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
To be something like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$email_content_1 =&#38;lt;&#38;lt;&#38;lt;EOT
...Put your PC content here.....
EOT;

$email_content_2 =&#38;lt;&#38;lt;&#38;lt;EOT
...Put your Mac content here.....
EOT;

if($user_input[&#38;#39;element_3&#38;#39;] == 1){
   $result[&#38;#39;body&#38;#39;] = $email_content_1;
}elseif($user_input[&#38;#39;element_3&#38;#39;] == 2){
   $result[&#38;#39;body&#38;#39;] = $email_content_2;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
That should send different emails.
&#60;/p&#62;</description>
</item>
<item>
<title>bmcrec on "Multiple Redirect URL's"</title>
<link>https://www.machform.com/forums/topic/multiple-redirect-urls#post-1247</link>
<pubDate>Sat, 29 Mar 2008 23:10:32 +0000</pubDate>
<dc:creator>bmcrec</dc:creator>
<guid isPermaLink="false">1247@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks yuniar that worked perfectly. Your product is amazing. &#60;/p&#62;
&#60;p&#62;I was wondering if it would be possible to take this one step further.&#60;/p&#62;
&#60;p&#62;I have tweaked the includes/helper-functions.php to send an email back to the form submitter and it works great. Since I now have separate Redirect URL’s based on the Mac or PC dropdown value. Is it possible to send a separate email back to form submitters based on this same value? Mac users get one email and PC users get another.&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Multiple Redirect URL's"</title>
<link>https://www.machform.com/forums/topic/multiple-redirect-urls#post-1227</link>
<pubDate>Fri, 28 Mar 2008 16:33:19 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1227@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This would require some hack.&#60;/p&#62;
&#60;p&#62;Let say you have a form with id = 2 and your dropdown is having id = 'element_3' (view the HTML source of your form to see it).&#60;/p&#62;
&#60;p&#62;And your dropdown values are:&#60;br /&#62;
1 - PC&#60;br /&#62;
2 - MAC&#60;/p&#62;
&#60;p&#62;Edit your &#60;strong&#62;includes/post-functions.php&#60;/strong&#62; file, search around line 910 - 914:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(empty($error_elements) &#38;#38;&#38;#38; empty($process_result[&#38;#39;custom_error&#38;#39;])){
	$process_result[&#38;#39;status&#38;#39;] = true;
}else{
	$process_result[&#38;#39;status&#38;#39;] = false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Modify the code above to be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(empty($error_elements) &#38;#38;&#38;#38; empty($process_result[&#38;#39;custom_error&#38;#39;])){
	$process_result[&#38;#39;status&#38;#39;] = true;
	if($form_id == 2){
		if($table_data[&#38;#39;element_3&#38;#39;] == 1){
			$process_result[&#38;#39;form_redirect&#38;#39;] = &#38;#39;http://www.pc.com&#38;#39;;
		}elseif ($table_data[&#38;#39;element_3&#38;#39;] == 2){
			$process_result[&#38;#39;form_redirect&#38;#39;] = &#38;#39;http://www.mac.com&#38;#39;;
		}
	}
}else{
	$process_result[&#38;#39;status&#38;#39;] = false;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
Adjust the id values above as needed.
&#60;/p&#62;</description>
</item>
<item>
<title>bmcrec on "Multiple Redirect URL's"</title>
<link>https://www.machform.com/forums/topic/multiple-redirect-urls#post-1224</link>
<pubDate>Fri, 28 Mar 2008 13:03:51 +0000</pubDate>
<dc:creator>bmcrec</dc:creator>
<guid isPermaLink="false">1224@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have a form that I’m using to register request for my software demo. It comes in two versions Mac and PC. Is there a way to have a drop down menu in the form where the user selects (let’s say) Mac or PC and If a user selects Mac the Redirect URL goes to one page and if the user selects PC the Redirect URL goes to a different page after the form is submitted?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
