Results 1 to 8 of 8

Thread: $return_link doesn't work, but everything else does.

  1. #1
    Join Date
    Jul 2008
    Posts
    4

    Default $return_link doesn't work, but everything else does.

    I've been through all the posts and how-to's. I can't seem to make my return link work. Everything else works great. This is so frustrating. The question seems to have been asked a lot of times...but I don't see a solution for my particular problem.

    It's a very simple form (my first try at this script and I'm not a programmer): http://thewritedesign.net/Pittsburgh-website-design.htm

    Here's what I have in my contact form (called Pittsburgh-website-design.htm).

    <input type="hidden" name="good_template" value="http://thewritedesign.net/thankyou.htm" />
    <input type="hidden" name="bad_url" value="http://thewritedesign.net/fmbadhandler.php" />
    <input type="hidden" name="bad_template" value="bad.htm" />
    <input type="hidden" name="this_form" value="http://thewritedesign.net/Pittsburgh-website-design.htm" />

    Everything works but the return link on bad.htm. I'm sure I'm missing something simple. I put a "use your browser back" notice up there, but I know that it doesn't work in Firefox...you always get an error after you get the first error. It never sees it as successful. So I would really like the return link to work.

    I have this link in bad.htm: <a href="$return_link">Return to form</a>

    What am I missing?

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

    Default Re: $return_link doesn't work, but everything else does.

    It looks like you haven't set up a folder for your templates. You need to do that and set the $TEMPLATEDIR in the script. Note: This must be the server path for your server, NOT a url. It might look something like this:

    /home/.sites/126/site112/web ...or... /home/.sites/126/site112/public_html

    If you type the following into your browser, (adjusting the domain name as well as the name of your formmail script), it will send you an email showing the path for your root directory on your server. Use that path, adding on the name of your template directory.

    http://www.yourdomain.com/formmail.php?testalert=1

    Also, make sure that you've set $TARGET_URLS in fmbadhandler.php.


    ginger
    Last edited by ginger23; 06-Jul-2008 at 02:05 AM.

  3. #3
    Join Date
    Jul 2008
    Posts
    4

    Default Re: $return_link doesn't work, but everything else does.

    Thanks for responding.

    I tried what you suggested. Still didn't work. Here's what I have:
    $TEMPLATEDIR = "/home/twdhost/public_html/fmtemplates/";
    $TEMPLATEURL = "http://www.thewritedesign.net/fmtemplates";

    I think I've tried every combination...taking out the TEMPLATEURL, etc.

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

    Default Re: $return_link doesn't work, but everything else does.

    Try removing the trailing slash from $TEMPLATEDIR:

    $TEMPLATEDIR = "/home/twdhost/public_html/fmtemplates"

    Also, did you set $TARGET_URLS ?

  5. #5
    Join Date
    Jul 2008
    Posts
    4

    Default Re: $return_link doesn't work, but everything else does.

    I tried removing the slash. No change.
    I see $TARGET_URLS around line 257. What exactly should I reference there?

  6. #6
    Join Date
    May 2008
    Posts
    1,291

    Default Re: $return_link doesn't work, but everything else does.

    I'd probably put:

    But when you're specifying url's in the script and in your form, you should be consistent, either using the www version or the non-www version.

  7. #7
    Join Date
    Jul 2008
    Posts
    4

    Default Re: $return_link doesn't work, but everything else does.

    I put in the target urls as you suggested. Still no change. I guess this is just a stumper.

  8. #8
    Join Date
    May 2008
    Posts
    1,291

    Default Re: $return_link doesn't work, but everything else does.

    All of those things needed to be set anyway. You were missing several settings, so there's probably at least one other that's either not set or incorrect.

    Change your form's action tag to "/procform.php" rather than the full url. Also change the url for fmbadhandler.php to "/fmbadhandler.php" rather than the full url.

    Other than that you'll need to post your configuration settings from the scripts.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem using return_link...
    By mjdublah in forum Community Support
    Replies: 1
    Last Post: 25-May-2006, 12:18 PM
  2. Problem with $return_link
    By dynamo in forum Community Support
    Replies: 1
    Last Post: 09-Mar-2006, 10:57 AM
  3. $return_link
    By dynamo in forum FormMail Subscription Support
    Replies: 2
    Last Post: 09-Mar-2006, 09:45 AM
  4. "<return_link/>" not parsed
    By johnny in forum FormMail Subscription Support
    Replies: 4
    Last Post: 19-Jun-2005, 02:30 AM
  5. Problem with return_link
    By antix in forum FormMail Subscription Support
    Replies: 9
    Last Post: 13-Sep-2004, 09:25 AM

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
  •