<?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>Appnitro Software Forums Topic: Dropdown Links</title>
<link>http://www.appnitro.com/forums/</link>
<description>Appnitro Software Forums Topic: Dropdown Links</description>
<language>en</language>
<pubDate>Wed, 07 Jan 2009 13:49:23 +0000</pubDate>

<item>
<title>reprocessor on "Dropdown Links"</title>
<link>http://www.appnitro.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@http://www.appnitro.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>http://www.appnitro.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@http://www.appnitro.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>http://www.appnitro.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@http://www.appnitro.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>http://www.appnitro.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@http://www.appnitro.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>
