<?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: Dropdown Links</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Dropdown Links</description>
<language>en</language>
<pubDate>Thu, 18 Jun 2026 13:27:05 +0000</pubDate>

<item>
<title>yuniar on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-9991</link>
<pubDate>Thu, 22 Jul 2010 11:59:01 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">9991@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmm... is it possible for us to try your form?&#60;br /&#62;
Let us know the URL please.&#60;/p&#62;
&#60;p&#62;You can send it via email: customer.service [at] appnitro.com&#60;br /&#62;
Also, send us the modified files as well (view-functions.php and post-functions.php)
&#60;/p&#62;</description>
</item>
<item>
<title>drumaboy46 on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-9980</link>
<pubDate>Wed, 21 Jul 2010 21:53:03 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">9980@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;ok tried everything still can't get the success page to show before redirecting.
&#60;/p&#62;</description>
</item>
<item>
<title>drumaboy46 on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-9943</link>
<pubDate>Sat, 17 Jul 2010 22:51:38 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">9943@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;still not showing the success page just redirecting to paypal.&#60;/p&#62;
&#60;p&#62;here's what I have: &#60;/p&#62;
&#60;p&#62;post-functions.php around line 1186&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//CUSTOM CODE REDIRECT/////////////////////////////////////////////////
if($form_id == &#38;quot;7&#38;quot;) {
	switch ($user_input[&#38;#39;element_14&#38;#39;]) {
		case 1 : $redirect = &#38;quot;customURL&#38;quot;; break;
		case 2 : $redirect = &#38;quot;customURL2&#38;quot;; break;
	}
	switch ($user_input[&#38;#39;element_15&#38;#39;]) {
		case 1 : $redirect = &#38;quot;customURL3&#38;quot;; break;
		case 2 : $redirect = &#38;quot;customURL4&#38;quot;; break;
	}
	$process_result[&#38;#39;form_redirect&#38;#39;] = $redirect;
	$_SESSION[&#38;#39;form_redirect&#38;#39;] = $process_result[&#38;#39;form_redirect&#38;#39;];
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;bottom of page in post-functions.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$commit_result[&#38;#39;form_redirect&#38;#39;] = $form_redirect;
//CUSTOM REDIRECT CODE////////
if (!empty($_SESSION[&#38;#39;form_redirect&#38;#39;])) {
	$commit_result[&#38;#39;form_redirect&#38;#39;] = $_SESSION[&#38;#39;form_redirect&#38;#39;];
}
return $commit_result;
////////////////////////&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and lastly view-functions.php around line 2228&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 7 &#38;#38;&#38;#38; !empty($_SESSION[&#38;#39;form_redirect&#38;#39;])) {

$custom_redirect_url = &#38;#39;&#38;lt;meta http-equiv=&#38;quot;Refresh&#38;quot; content=&#38;quot;5;  url=&#38;#39;.$_SESSION[&#38;#39;form_redirect&#38;#39;].&#38;#39;&#38;quot;&#38;gt;&#38;#39;;

unset($_SESSION[&#38;#39;form_redirect&#38;#39;]);
 }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;THANK YOU FOR ALL YOUR HELP you rock. Just to be clear though all I want is when they review there inpu and click submit to be taken to the success page where it say &#34;Success your submission....&#34; then I want them to be redirected. :D
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-9940</link>
<pubDate>Sat, 17 Jul 2010 16:46:56 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">9940@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;It's possible but you need to change the previous code also. Try to follow these steps :&#60;/p&#62;
&#60;p&#62;1. Change these from previous code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($_SESSION[&#38;#39;form_redirect&#38;#39;])) {
	$commit_result[&#38;#39;form_redirect&#38;#39;] = $_SESSION[&#38;#39;form_redirect&#38;#39;];
	unset($_SESSION[&#38;#39;form_redirect&#38;#39;]);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($_SESSION[&#38;#39;form_redirect&#38;#39;])) {
	$commit_result[&#38;#39;form_redirect&#38;#39;] = $_SESSION[&#38;#39;form_redirect&#38;#39;];

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. And Refer to this post &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/redirect-after-submission?replies=8&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/redirect-after-submission?replies=8&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can change this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 1) {
	$custom_redirect_url = &#38;#39;&#38;lt;meta http-equiv=&#38;quot;Refresh&#38;quot; content=&#38;quot;5;url=http://www.domain.com&#38;quot;&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;into &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($form_id == 1 &#38;#38;&#38;#38; !empty($_SESSION[&#38;#39;form_redirect&#38;#39;])) {
	$custom_redirect_url = &#38;#39;&#38;lt;meta http-equiv=&#38;quot;Refresh&#38;quot; content=&#38;quot;5;url=&#38;#39;.$_SESSION[&#38;#39;form_redirect&#38;#39;].&#38;#39;&#38;quot;&#38;gt;&#38;#39;;
	unset($_SESSION[&#38;#39;form_redirect&#38;#39;]);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>drumaboy46 on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-9933</link>
<pubDate>Fri, 16 Jul 2010 19:40:07 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">9933@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;fantastic!!!!!! works like a charm. One small thing though I want a success message to show for about 5secs like in this example:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.appnitro.com/forums/topic/redirect-after-submission?replies=8&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forums/topic/redirect-after-submission?replies=8&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;but how do I pass my custom URLS's to the view-functions.php since I have multiple redirects that are possible?
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-9931</link>
<pubDate>Fri, 16 Jul 2010 18:10:31 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">9931@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I think you've enable the form review, the above code only work if the form review is disabled. However, you can customize the code to works with form review enabled. Try to follow these steps :&#60;/p&#62;
&#60;p&#62;1. Change this line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$process_result[&#38;#39;form_redirect&#38;#39;] = $redirect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;into&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$process_result[&#38;#39;form_redirect&#38;#39;] = $redirect;
$_SESSION[&#38;#39;form_redirect&#38;#39;] = $process_result[&#38;#39;form_redirect&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. Go to around line 2337 in &#34;post-functions.php&#34; file for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$commit_result[&#38;#39;form_redirect&#38;#39;] = $form_redirect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and put these code exactly bellow that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($_SESSION[&#38;#39;form_redirect&#38;#39;])) {
	$commit_result[&#38;#39;form_redirect&#38;#39;] = $_SESSION[&#38;#39;form_redirect&#38;#39;];
	unset($_SESSION[&#38;#39;form_redirect&#38;#39;]);
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>drumaboy46 on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-9930</link>
<pubDate>Fri, 16 Jul 2010 12:24:04 +0000</pubDate>
<dc:creator>drumaboy46</dc:creator>
<guid isPermaLink="false">9930@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I am trying to achieve the same thing but I have two elements that it could be for example. I want to redirect users to the right custom paypal page based on what they select so when they review their submission and hit submit the entry is received and they are taken to the proper URL. Based on the example above this is what I have but it just shows the confirmation page after submission.&#60;/p&#62;
&#60;p&#62;My Code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($form_id == 7) {
	switch ($user_input[&#38;#39;element_14&#38;#39;]) {
		case 1 : $redirect = &#38;#39;customURL&#38;#39;; break;
		case 2 : $redirect = &#38;#39;customURL&#38;#39;; break;
	}
	switch ($user_input[&#38;#39;element_15&#38;#39;]) {
		case 1 : $redirect = &#38;#39;customURL&#38;#39;; break;
		case 2 : $redirect = &#38;#39;customURL&#38;#39;; break;
	}
	$process_result[&#38;#39;form_redirect&#38;#39;] = $redirect;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;what am I doing wrong?
&#60;/p&#62;</description>
</item>
<item>
<title>reprocessor on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-2853</link>
<pubDate>Thu, 04 Sep 2008 21:55:22 +0000</pubDate>
<dc:creator>reprocessor</dc:creator>
<guid isPermaLink="false">2853@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks Yuniar - this worked a treat ;)&#60;/p&#62;
&#60;p&#62;Best regards,&#60;/p&#62;
&#60;p&#62;Phil
&#60;/p&#62;</description>
</item>
<item>
<title>reprocessor on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-2778</link>
<pubDate>Thu, 28 Aug 2008 19:08:01 +0000</pubDate>
<dc:creator>reprocessor</dc:creator>
<guid isPermaLink="false">2778@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for this Yuinar - I'll give it a try soon and will let you know how i get on :)&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Phil
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-2776</link>
<pubDate>Thu, 28 Aug 2008 17:26:12 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">2776@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi Phil,&#60;/p&#62;
&#60;p&#62;Pretty simple actually. Let's take an example with this form:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forms/view.php?id=19&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forms/view.php?id=19&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That form is having form_id = 19 and the &#34;Redirect To&#34; dropdown is having id = &#34;element_2&#34; (view the HTML source to see this)&#60;/p&#62;
&#60;p&#62;The dropdown is having some values:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;option value=&#38;quot;1&#38;quot; &#38;gt;Google&#38;lt;/option&#38;gt;
&#38;lt;option value=&#38;quot;2&#38;quot; &#38;gt;Yahoo&#38;lt;/option&#38;gt;
&#38;lt;option value=&#38;quot;3&#38;quot; &#38;gt;MSN&#38;lt;/option&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now, the plan is to redirect to either Google or Yahoo or MSN, based on the selected dropdown.&#60;/p&#62;
&#60;p&#62;Edit your &#60;strong&#62;includes/post-functions.php&#60;/strong&#62; file, around line 1173 - 1175 you'll find this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(!empty($form_review)){
	$process_result[&#38;#39;review_id&#38;#39;]   = $record_insert_id;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Exactly below the above code, add this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($form_id == 19){
	switch ($user_input[&#38;#39;element_2&#38;#39;]){
		case 1 : $redirect = &#38;#39;http://www.google.com&#38;#39;; break;
		case 2 : $redirect = &#38;#39;http://www.yahoo.com&#38;#39;; break;
		case 3 : $redirect = &#38;#39;http://www.msn.com&#38;#39;; break;
	}

	$process_result[&#38;#39;form_redirect&#38;#39;] = $redirect;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would do it.&#60;/p&#62;
&#60;p&#62;Of course, you will need to adjust the above code with your own values.&#60;/p&#62;
&#60;p&#62;Note: The code above only work for form with &#34;Form Review&#34; disabled.
&#60;/p&#62;</description>
</item>
<item>
<title>reprocessor on "Dropdown Links"</title>
<link>https://www.machform.com/forums/topic/dropdown-links#post-2763</link>
<pubDate>Wed, 27 Aug 2008 16:38:49 +0000</pubDate>
<dc:creator>reprocessor</dc:creator>
<guid isPermaLink="false">2763@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;I was wondering if you can make the options in a dropdown list link to another page. For example; there'd be 20 trades in the dropdown and when you select one and click submit it will take you to the appropriate page for that trade. I've seen the post that will allow you to do this for email (I think it was Anthony Best's post - on the sticky list) and would like to know how to do it for links as my php aint that good ;)&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Phil
&#60;/p&#62;</description>
</item>

</channel>
</rss>
