+ Reply to Thread
Results 1 to 3 of 3

Thread: Link to your own REDIRECT page?

  1. #1
    Join Date
    Jun 2004
    Posts
    8

    Default Link to your own REDIRECT page?

    Ok I have the part of the code that creates the default redirect page for the user, however I have made my own redirect page that I have linked to in my form code.

    Can I just comment out the $good_url line for my html form code to work or must I change something in the $good_url line to properly link to my already made redirect page.


    If the $get_url line needs to be changed here's the code for easy copy paste for anyone who can help.

    //
    // redirect to the good URL page, or create a default page
    //
    $good_url = $SPECIAL_VALUES["good_url"];
    if (!isset($good_url) || empty($good_url))
    CreatePage("Thanks! We've received your information and, if it's appropriate, we'll be in contact with you soon.");
    else
    Redirect($good_url);
    //

  2. #2
    Join Date
    Jun 2004
    Posts
    8

    Default How To:

    ok I figured it out on my own and though maybe some others would like to know how.


    You dont need to edit anything in your formmail.php file to create or link to your own redirect page; rather than using the one the formmail file generates for you.

    Open up your form page and add this "input type" line, which is listed in red, after your form actions.

    <form action="formmail.php" method="post">
    <input type="hidden" name="recipients" value="name@site.com">
    <input type="hidden" name="subject" value="Form Details">

    <input type="hidden" name="good_url" value="redirect.html">

    name="good_url" is the variable name given to your redirect page by the formmail.php file

    value="redirect.html" is the name of the redirect.html file you created

    this is assuming your redirect file is the same folder as your form page - otherwise make the necessary changes to the url

  3. #3
    Join Date
    Dec 2003
    Posts
    3,901

    Smile Re: Link to your own REDIRECT page?

    Hi,

    Thanks for posting the (correct) answer.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ 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. fmbadhandler link back problem
    By frankherzog in forum FormMail Subscription Support
    Replies: 6
    Last Post: 25-Nov-2004, 11:58 AM
  2. Redirect NOT working
    By LordWulf in forum FormMail Subscription Support
    Replies: 3
    Last Post: 21-Aug-2004, 10:47 PM
  3. Now I am stomped! URL for redirect
    By sigurdur in forum FormMail Subscription Support
    Replies: 3
    Last Post: 01-Aug-2004, 01:02 AM
  4. No return link for badhandler
    By ptr in forum FormMail Subscription Support
    Replies: 3
    Last Post: 27-May-2004, 12:27 AM
  5. Redirect to my page on submit
    By insight in forum FormMail Subscription Support
    Replies: 21
    Last Post: 09-Apr-2004, 01:06 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