Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2008
    Thanked 0 Times in 0 Posts

    Force sign-up before allowing page view

    I have this whitepaper, but I want people to have to fill out a form prior to seeing the page. I am currently using FormMail from www.tectite.com to process the form, but I am guessing that I need to send some kind of command from formmail.php to the final page stating that the user has filled out the form. I also don't want them to simply copy a url and send that to their friends. So it will have to use cookies, I think. And right now, I don't use any type of database, so there isn't any registration or anything. They fill out a form and the data is emailed.

    I have no idea how to go about this, but if someone could help me (tutorial, google search terms, complete answer), I would appreciate it so much.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Thanked 637 Times in 625 Posts
    You could use a session, and set a session variable when the form completes, then check to make sure the session variable is set when the final page is viewed, that way someone can't just browse to the final page.

    You could also add a simple login using HTTP authentication... probably more effort than you really need though, as long as your users who have filled out the form in the past don't have any need to get straight to the final page without filling out the form again.


    Posting Permissions

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