+ Reply to Thread
Results 1 to 5 of 5

Thread: Hide Thank You Page URL

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    3

    Default Hide Thank You Page URL

    Hi,

    thank you for this great and easy to install script.

    I've got one question:

    Is it possible to hide the redirecting url on my webform, because I want to make it the download page for my product. Could I code the url e.g. directly into the formmailer instead of the webform? Or is there an alternative?

    Thank you for your help and keep on with the good work!

    Sebastian

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

    Default Re: Hide Thank You Page URL

    Hi,

    One way is to derive the "good_url" field using "derive_fields". See the HOW TO guide for how to do this.

    This provides a simple encoding that any determined person could decode.

    The other way is to write a front-end PHP script that your HTML form calls instead of formmail.php. That script then includes formmail.php to do the rest of the work.

    It would look like this:
    PHP Code:
    $_POST["good_url"] = "http://your-download-url";
    require(
    "formmail.php"); 
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jan 2006
    Posts
    3

    Default Re: Hide Thank You Page URL

    Hi Russell,

    thank you! Is that the whole script? Does that mean I do only have to write an new script with these lines and run it instead of formmail? I am really novice to php and I loved the simplicity of installing your script. :-)

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

    Default Re: Hide Thank You Page URL

    Hi,

    Yes, that's the whole script (except I left out the PHP tags). Here it is with comments:
    PHP Code:
    <?php
    $_POST
    ["good_url"] = "http://your-download-url";  // force a particular URL for a successful submission and put it in the POST data.  This hides the URL form the contents of the HTML form sent to the browser.
    require("formmail.php");   // call FormMail to do all its usual work
    ?>
    Start by getting your form working without using the above. Set "good_url" in your HTML form. Test until you're happy that it's working perfectly.

    Then, when it's working correctly, do this:
    1. Write the above script. Call it, say, "download.php". Put the right URL in the place shown.
    2. Remove "good_url" from your HTML form.
    3. Change the "action" attribute of the FORM tag in the HTML form to be "download.php" (with path etc at the front).
    4. Test!
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Jan 2006
    Posts
    3

    Default Re: Hide Thank You Page URL

    It works!!

    Thank you so much. :-)

    I hope other users will find this information useful as well.
    BTW: As intended, it is not possible to access the target url directly now. Perfect.

+ 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. Advance Error -no returne URL
    By JohnB in forum FormMail Subscription Support
    Replies: 7
    Last Post: 01-Jan-2005, 11:15 PM
  2. Using formmail from URL bar?
    By Eric Sandres in forum FormMail Subscription Support
    Replies: 1
    Last Post: 05-Nov-2004, 03:52 AM
  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. Formmail File Visible In URL Address
    By amazing616 in forum FormMail Subscription Support
    Replies: 5
    Last Post: 03-Jun-2004, 09:13 PM
  5. The requested URL was not found on this server.
    By aussieincanada in forum FormMail Subscription Support
    Replies: 1
    Last Post: 27-May-2004, 08:46 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