check referring page
Posted on 2011-09-06
I have a sweepstakes landing page with a quiz. To enter the sweepstakes users must complete the quiz and at the end there is a link to an entry form (which takes them to the form page). They can only enter once per day. On the form, if they choose, they can click "remember me" so the form fields will auto-populate on future visits (cookies). How can I...
1. On future visits, make sure they do not bypass the quiz by going directly to the form page (bookmarking it, etc).
2. limit them to only one entry per day (check the db and if there is already an entry with their email dated today - give them a "sorry" message)
p.s. I do not want to use login for this. Not sure if this matters, but the quiz is in both Flash (for web) version and Javascrip (for mobile).
Also, I am only a lightweight programmer so prefer the simplest solution. This site uses PHP and MySQL.