Results 1 to 4 of 4

Thread: $return_link error

  1. #1
    Join Date
    Feb 2009
    Posts
    34

    Default $return_link error

    I cant seem to get the $return_link to work in fmbadhandler. Everything else works fine up to this point. When I test submitting form with errors the required.php shows with the missing requirements. The error I receive when I click on return to form is "$return_link not found on server."

    My php scripts pages are set up differently and do not have <body> nor <html> tags. And I remember reading about the link being placed just before </body> tag. Because I am using
    Code:
    <?php include ('inc/header.php'); ?>
    for some reason I thought this had to be the first line (line 1) on every page using a include function. When I try to add the the <html> or <body> tags anywhere on the pages created it throws off my whole design.

    I set up in my formail.ini trying both examples below
    (1st tried) this_form = "http://ct-pcmedic.com/contact.php"
    (2nd tried) this_form = "contact.php"

    Also in formail.ini
    bad_url = "http://www.ct-pcmedic.com/fmbadhandler"
    bad_template = "http://www.ct-pcmedic.com/required.php"

    Using the testurlopen.php gave me these results
    php version 5.2.8
    safemode is off (this is good)
    url open succeded

    target_url in both formmail & fmbadhandler are set to "http://www.ct-pcmedic.com/"

    $Templateurl in both formail & fmbadhandler are set to "http://www.ct-pcmedic.com/fmtemplates"

    My $return_link is as follows
    <a href="$return_link">Return to form </a>

    So I'm not sure if it's something I'm doing wrong in the setup of fmbadhandler or more than likely my php page design.
    Last edited by spalmere; 05-Mar-2009 at 06:01 PM. Reason: forgot to add information

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

    Default Re: $return_link error

    My php scripts pages are set up differently and do not have <body> nor <html> tags.
    Do you mean the file that you're including (like header.php)? Your templates should have <body></body> and <html></html> tags.

    However, the problem is probably caused by the fact that you used url's "with www" for most things including $TARGET_URLS, but used one "without www" for the "this_form" setting. You should make sure they all match, and I would use the full url, not just contact.php for the "this_form" setting.

    Also, you have the wrong URL for bad_template. You indicated above that you have: bad_template = "http://www.ct-pcmedic.com/required.php" . It should just be: require.php, which is appended to the $TEMPLATEURL setting, which includes the fmtemplates directory.

    Give those changes a try and see if it helps.

    ginger
    Last edited by ginger23; 05-Mar-2009 at 08:21 PM.

  3. #3
    Join Date
    Feb 2009
    Posts
    34

    Default Re: $return_link error

    Do you mean the file that you're including (like header.php)? Your templates should have <body></body> and <html></html> tags.
    Sorry I screwed that up. Seems I left out information when trying to explain this. I hope that this explanation helps better.

    The documentation for fmbadhandler if I read it correctly states that the $return_link is placed just before the body end tag </body> and my required.php does not have those tags in them because of the
    <?php include ('inc/header.php'); ?> function that I am using in my pages.

    In the meantime I will make the necessary changes you mentioned and let you know the outcome. Thanks in advance.

  4. #4
    Join Date
    Feb 2009
    Posts
    34

    Talking Re: $return_link error---SOLVED

    Thank you ginger. You were right. The fact that I was using the full url in bad_template is what caused my problem. This was the only thing that I did not change when I was trying to resolve it my own.

    So I guess the confusing question I made about the tags not being in my php pages were irrelevant. But I hope that my second explanation was better worded.

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
  •