+ Reply to Thread
Results 1 to 7 of 7

Thread: Redirect - Question/Help

  1. #1
    Join Date
    Jan 2012
    Posts
    3

    Default Redirect - Question/Help

    Hi,

    I am trying to set up a form and have it redirect to my thankyou.php file. I have reviewed the how-to on the site and have the following coding:

    <input type="hidden" name="good_url"
    value="http://tcg.starsuphigh.com/thankyou.php" />

    Yet, it is still not redirecting and goes to the standard "form has been submitted" page. Any thoughts?

    Thanks!

  2. #2
    Join Date
    May 2008
    Posts
    1,281

    Default Re: Redirect - Question/Help

    Hi,

    If you're referring to your trade form that's listed in the left side navigation, you have the good_url set to "thanks.htm" not "thankyou.php".

    ginger

  3. #3
    Join Date
    Jan 2012
    Posts
    3

    Default Re: Redirect - Question/Help

    Thank yo so much for that. I have had issues recently with changes uploading. I have it fixed but now I am getting this error:

    The following error occurred in FormMail :

    next_plus_good
    **********
    Error=The form has specified both "next_form" and "good_url" fields - the action to to perform is ambiguous


  4. #4
    Join Date
    May 2008
    Posts
    1,281

    Default Re: Redirect - Question/Help

    I haven't seen that error message, but it sounds like you've specified next_form which is a field used for multi-page forms, but I don't see that in the form's source code, so I'm not sure where that's coming from, unless it's a different form than the one I looked at. This is the form that I've been looking at: http://tcg.starsuphigh.com/trade.php

    ginger

  5. #5
    Join Date
    Jan 2012
    Posts
    3

    Default Re: Redirect - Question/Help

    Thanks again, Ginger, for looking at this. I don't believe I have specified any next forms, as that's not needed at all. In fact, I'm not even entirely sure I would know how lol

    I actually ended up re-uploading fresh files and it's working now. Odd.

    Thank you even though I think I was just being dumb!

  6. #6
    Join Date
    Jan 2012
    Posts
    2

    Default Re: Redirect - Question/Help

    hi, why you don't call it in form ?
    you can use
    <form method="post" action="thankyou.php">

    when you click submit this will redirect to thankyou.php . Or you can use regular onClick in <input type="submit" onclick="windows.redirect(thankyou.php)">

    Good luck

    ________________________________________
    www.sun-group.com.vn/gioi-thieu.html - sun group vietnam
    Last edited by linhndd; 10-Jan-2012 at 04:54 AM.

  7. #7
    Join Date
    Jan 2012
    Posts
    5

    Default Re: Redirect - Question/Help

    Quote Originally Posted by linhndd View Post
    hi, why you don't call it in form ?
    you can use
    <form method="post" action="thankyou.php">

    when you click submit this will redirect to thankyou.php . Or you can use regular onClick in <input type="submit" onclick="windows.redirect(thankyou.php)">

    Good luck

    ________________________________________
    www.sun-group.com.vn/gioi-thieu.html - sun group vietnam

    This will work, but will redirect to the thank you page even if there is an error in submission. Using good url and bad url allows you to have a thank you page and an error page. Even without custom-generated errors, this will at least let a user know their form was not submitted.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Redirect problems
    By cooper in forum Features Questions
    Replies: 5
    Last Post: 24-Jan-2013, 03:47 AM
  2. #! Redirect
    By Sinclone in forum HOWTO Guides and Tips
    Replies: 1
    Last Post: 29-Oct-2011, 09:55 PM
  3. redirect question
    By prncfarquad in forum Features Questions
    Replies: 2
    Last Post: 07-Jan-2008, 03:21 PM
  4. redirect question
    By youthgas in forum Community Support
    Replies: 4
    Last Post: 05-Jan-2008, 01:43 AM
  5. Newbie remove redirect question
    By silsurf@mac.com in forum Community Support
    Replies: 0
    Last Post: 16-Dec-2006, 07:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts