<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Correct Conditional Statement - Probably Simple Answer</title>
		<link>https://legacy.forums.gravityhelp.com/topic/correct-conditional-statement-probably-simple-answer</link>
		<description>Gravity Support Forums Topic: Correct Conditional Statement - Probably Simple Answer</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:50:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/correct-conditional-statement-probably-simple-answer" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Correct Conditional Statement - Probably Simple Answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/correct-conditional-statement-probably-simple-answer#post-101360</link>
			<pubDate>Tue, 11 Dec 2012 17:46:21 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">101360@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you figured it out. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>studio57designs on "Correct Conditional Statement - Probably Simple Answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/correct-conditional-statement-probably-simple-answer#post-101359</link>
			<pubDate>Tue, 11 Dec 2012 17:41:24 +0000</pubDate>
			<dc:creator>studio57designs</dc:creator>
			<guid isPermaLink="false">101359@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, well I answered my own question.  I needed to use the value of the dropdown, rather than the label and now its redirecting as I'd hoped.&#60;/p&#62;
&#60;p&#62;You can close this for me please.&#60;/p&#62;
&#60;p&#62;Louise
&#60;/p&#62;</description>
		</item>
		<item>
			<title>studio57designs on "Correct Conditional Statement - Probably Simple Answer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/correct-conditional-statement-probably-simple-answer#post-101343</link>
			<pubDate>Tue, 11 Dec 2012 16:21:44 +0000</pubDate>
			<dc:creator>studio57designs</dc:creator>
			<guid isPermaLink="false">101343@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I have a form that has a dropdown selector.  That is what I'm keying on to determine how a redirect will work.&#60;/p&#62;
&#60;p&#62;I'm passing a value through the query string on submit.&#60;/p&#62;
&#60;p&#62;I know its passing the query string, because the links look like:&#60;br /&#62;
&#60;a href=&#34;http://www.XXXXX.com/?s1=Sentry+Mine+Tracking+System&#34; rel=&#34;nofollow&#34;&#62;http://www.XXXXX.com/?s1=Sentry+Mine+Tracking+System&#60;/a&#62;&#60;br /&#62;
or&#60;br /&#62;
&#60;a href=&#34;http://www.XXXXX.com?s1=Rio+Guest+Tracking+System&#34; rel=&#34;nofollow&#34;&#62;http://www.XXXXX.com?s1=Rio+Guest+Tracking+System&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But the logic that I got from the forums isn't working and I'm sure its probably just my lack of knowledge about how to write the statement, so the correct page loads&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Form Redirect
*/

$s1 = $_GET[&#38;#39;s1&#38;#39;] ; // where s1 is what you passed in the query string

if ($s1 == &#38;#39;Sentry+Mine+Tracking+System&#38;#39;)
  wp_redirect(&#38;#39;http://www.XXXXX.com/technology/sentry&#38;#39;);
else
  wp_redirect(&#38;#39;http://www.XXXXX.com/rio&#38;#39;);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The second url is the one that is always directed to regardless of the URL/query string.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Louise
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
