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..
I have a simple form set up where customers can choose from two options:
1 - branch (the city they require)
2 - course (the course they wish to choose)
I followed the instructions I have already been given, with a redirect.php file but I am just getting parse errors.
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
/{Branch:1}/{Course:2}/
Produces http://www.mysite.com/?/branch/course
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....
Please advise!
Here is the redirect code I have been using (trying to use)
<?php
$Branch = $_GET['Branch'];
switch ($Branch)
{
case London:
header("Location: <a href="http://www.domain.com/example/1")" rel="nofollow">http://www.domain.com/example/1")</a>;
break;
case Oxford:
header("Location: <a href="http://www.domain.com/example/2")" rel="nofollow">http://www.domain.com/example/2")</a>;
break;
}
?>