<?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: Two submit buttons sending to different redirect urls</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Two submit buttons sending to different redirect urls</description>
<language>en</language>
<pubDate>Wed, 17 Jun 2026 06:49:41 +0000</pubDate>

<item>
<title>DaveVoss on "Two submit buttons sending to different redirect urls"</title>
<link>https://www.machform.com/forums/topic/two-submit-buttons-sending-to-different-redirect-urls#post-12599</link>
<pubDate>Mon, 19 Sep 2011 15:17:54 +0000</pubDate>
<dc:creator>DaveVoss</dc:creator>
<guid isPermaLink="false">12599@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Ok I got it to work with out review turned on, which is how I want it anyway.  I added the two lines ABOVE the code like this:&#60;/p&#62;
&#60;p&#62;		if(empty($error_elements) &#38;#38;&#38;#38; empty($process_result['custom_error'])){&#60;br /&#62;
			$process_result['status'] = true;&#60;br /&#62;
//Line 1218 of post-functions&#60;br /&#62;
				$redirect = 'http://www.yahoo.com';  //voss added&#60;br /&#62;
				$process_result['form_redirect'] = $redirect;   //voss added&#60;/p&#62;
&#60;p&#62;			//if 'form review' enabled, send review_id&#60;br /&#62;
			if(!empty($form_review)){&#60;br /&#62;
				$process_result['review_id']   = $record_insert_id;
&#60;/p&#62;</description>
</item>
<item>
<title>DaveVoss on "Two submit buttons sending to different redirect urls"</title>
<link>https://www.machform.com/forums/topic/two-submit-buttons-sending-to-different-redirect-urls#post-12598</link>
<pubDate>Mon, 19 Sep 2011 15:08:02 +0000</pubDate>
<dc:creator>DaveVoss</dc:creator>
<guid isPermaLink="false">12598@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I've tried it both ways, with review turned on and review turned off.  In both cases I just get the &#34;success&#34; message.  The instructsions in the post&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forums/topic/dropdown-links?replies=4#post-2776&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/dropdown-links?replies=4#post-2776&#60;/a&#62;&#60;br /&#62;
say that it should work with review turned off, but the &#34;if&#34; statement translates to me as &#34;if form review is not empty, which means it's turned on&#34; etc.&#60;/p&#62;
&#60;p&#62;The lines I inserted start at line 1222 in version 2.4
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Two submit buttons sending to different redirect urls"</title>
<link>https://www.machform.com/forums/topic/two-submit-buttons-sending-to-different-redirect-urls#post-12591</link>
<pubDate>Sun, 18 Sep 2011 20:39:01 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">12591@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The code above only work if you have &#34;form review&#34; enabled. Have you turned it on?
&#60;/p&#62;</description>
</item>
<item>
<title>DaveVoss on "Two submit buttons sending to different redirect urls"</title>
<link>https://www.machform.com/forums/topic/two-submit-buttons-sending-to-different-redirect-urls#post-12584</link>
<pubDate>Fri, 16 Sep 2011 13:11:33 +0000</pubDate>
<dc:creator>DaveVoss</dc:creator>
<guid isPermaLink="false">12584@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I tried your suggestion, but it didn't work.  So to make a really simple test, I just added two lines of code so that the &#34;if&#34; statement looks like this:&#60;/p&#62;
&#60;p&#62;if(!empty($form_review)){&#60;br /&#62;
	$process_result['review_id']   = $record_insert_id;&#60;br /&#62;
	$redirect = 'http://www.google.com';           //Voss added&#60;br /&#62;
	$process_result['form_redirect'] = $redirect;  //Voss added&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;When I fill out form #2 I still get the &#34;success&#34; message.  It doesn't redirect to google.com.  What am I doing wrong?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Two submit buttons sending to different redirect urls"</title>
<link>https://www.machform.com/forums/topic/two-submit-buttons-sending-to-different-redirect-urls#post-12581</link>
<pubDate>Wed, 14 Sep 2011 21:42:28 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">12581@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;It's not possible to put two submit button in the form. However, there is another way for this with small customization.&#60;br /&#62;
First, you need to put a drop down field into the form with options &#34;pay by paypal&#34; and &#34;pay by cheque&#34;. Then you can follow the method that posted in here for the customization.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/dropdown-links?replies=4#post-2776&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/dropdown-links?replies=4#post-2776&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That would redirect to different url based on your &#34;drop down&#34; field selection.
&#60;/p&#62;</description>
</item>
<item>
<title>brianmcgrath on "Two submit buttons sending to different redirect urls"</title>
<link>https://www.machform.com/forums/topic/two-submit-buttons-sending-to-different-redirect-urls#post-12575</link>
<pubDate>Tue, 13 Sep 2011 19:52:13 +0000</pubDate>
<dc:creator>brianmcgrath</dc:creator>
<guid isPermaLink="false">12575@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I currently have a form which on submission redirects to a paypal payment page.  However I need to add another submit button&#60;br /&#62;
(ie. &#34;Pay by cheque&#34;) which will submit the same form but will instead redirect to a different url / thank you page.&#60;/p&#62;
&#60;p&#62;Any help on this hugely appreciated!&#60;/p&#62;
&#60;p&#62;Brian
&#60;/p&#62;</description>
</item>

</channel>
</rss>
