<?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: Conditional redirect with submit button</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-with-submit-button</link>
		<description>Gravity Support Forums Topic: Conditional redirect with submit button</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:47:40 +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/conditional-redirect-with-submit-button" rel="self" type="application/rss+xml" />

		<item>
			<title>GZA on "Conditional redirect with submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-with-submit-button#post-51731</link>
			<pubDate>Thu, 08 Mar 2012 08:01:44 +0000</pubDate>
			<dc:creator>GZA</dc:creator>
			<guid isPermaLink="false">51731@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, some tutorials from GF guys would be a great idea.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>danielpettifer on "Conditional redirect with submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-with-submit-button#post-51403</link>
			<pubDate>Tue, 06 Mar 2012 05:13:49 +0000</pubDate>
			<dc:creator>danielpettifer</dc:creator>
			<guid isPermaLink="false">51403@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do you have a recent tutorial on this that I may be able to follow..?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>danielpettifer on "Conditional redirect with submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-with-submit-button#post-51232</link>
			<pubDate>Sun, 04 Mar 2012 07:23:14 +0000</pubDate>
			<dc:creator>danielpettifer</dc:creator>
			<guid isPermaLink="false">51232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry I forgot to mention, I need this to redirect based on both the branch and the course. If there is a simple way to inject this in to the url that would be perfect.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>danielpettifer on "Conditional redirect with submit button"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirect-with-submit-button#post-51231</link>
			<pubDate>Sun, 04 Mar 2012 07:20:58 +0000</pubDate>
			<dc:creator>danielpettifer</dc:creator>
			<guid isPermaLink="false">51231@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello there, I know this is an old topic but I just can't seem to get anything to work with the information I can find on the forums. Let me explain..&#60;/p&#62;
&#60;p&#62;I have a simple form set up where customers can choose from two options:&#60;/p&#62;
&#60;p&#62;1 - branch (the city they require)&#60;br /&#62;
2 - course (the course they wish to choose)&#60;/p&#62;
&#60;p&#62;I followed the instructions I have already been given, with a redirect.php file but I am just getting parse errors.&#60;/p&#62;
&#60;p&#62;I have discovered that if I pass the filed data via query string it adds the selections to the url being produced by the form&#60;/p&#62;
&#60;p&#62;/{Branch:1}/{Course:2}/&#60;/p&#62;
&#60;p&#62;Produces &#60;a href=&#34;http://www.mysite.com/?/branch/course&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/?/branch/course&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;this would be perfect and I wouldn't need to use a redirect file however it is inserting a question mark that isn't helping....&#60;/p&#62;
&#60;p&#62;Please advise!&#60;/p&#62;
&#60;p&#62;Here is the redirect code I have been using (trying to use)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$Branch = $_GET[&#38;#39;Branch&#38;#39;];

switch ($Branch)
{

case London:
header(&#38;quot;Location: &#38;lt;a href=&#38;quot;http://www.domain.com/example/1&#38;quot;)&#38;quot; rel=&#38;quot;nofollow&#38;quot;&#38;gt;http://www.domain.com/example/1&#38;quot;)&#38;lt;/a&#38;gt;;
break;

case Oxford:
header(&#38;quot;Location: &#38;lt;a href=&#38;quot;http://www.domain.com/example/2&#38;quot;)&#38;quot; rel=&#38;quot;nofollow&#38;quot;&#38;gt;http://www.domain.com/example/2&#38;quot;)&#38;lt;/a&#38;gt;;
break;

}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
