Protect Pages With 1 Time Signup

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ajfoote
Forum Newbie
Posts: 1
Joined: Sun Mar 07, 2004 11:41 pm

Protect Pages With 1 Time Signup

Post by ajfoote »

Hi all.

I am hoping some one can help me. I have searched and search online but can't seam to find what I am looking for, seams like a common thing to be but maybe not.

This is what I need to do:

I have a web site that has all kind of free reports that I (or others) have written on my proffession (real estate). These reports are just pages throught my site. Right now a user has to fill in a form (enter there name and email) to get the report, this way I know who and how many people are using them.

The problem is there are a lot of them and right now a person has to fil in the form each time they want to read one.

I would really like to be able to have an include file on those page that checks to see if the they already filled in the form, if so - give them the page, if not give them the form to fill out.

So basiclly the form sets a cookie (good for 1 day or whatever) so when they go to the other page they would'nt be forced to fill in the form again.

Hopefully this makes sence to someone out there.


AJ Foote
ajfoote@rogers.com
User avatar
Phirus
Forum Commoner
Posts: 37
Joined: Thu Apr 18, 2002 4:10 pm
Contact:

Post by Phirus »

Post Reply