View Full Version : Force sign-up before allowing page view

03-25-2009, 06:52 PM
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.

03-25-2009, 08:26 PM
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.