PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Conditional redirect with submit button

  1. danielpettifer

    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



    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)

    $Branch = $_GET['Branch'];
    switch ($Branch)
    case London:
    header("Location: <a href="")" rel="nofollow">")</a>;
    case Oxford:
    header("Location: <a href="")" rel="nofollow">")</a>;
    Posted 10 years ago on Sunday March 4, 2012 | Permalink
  2. danielpettifer

    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.

    Posted 10 years ago on Sunday March 4, 2012 | Permalink
  3. danielpettifer

    Do you have a recent tutorial on this that I may be able to follow..?

    Posted 10 years ago on Tuesday March 6, 2012 | Permalink
  4. GZA

    Actually, some tutorials from GF guys would be a great idea.

    Posted 10 years ago on Thursday March 8, 2012 | Permalink