Hello,
I am trying to set up a monthly contest. I have a MySQL database set up, and users will fill out a form once that has all the contact info we'll need. After that, they can sign up on a different form that allows them to just enter their email. User will be allowed to enter only once per day.
What I'm looking for is a way to log in the day they enter, and one count for that. Then if they tried using either form to enter again, the form would check the database and make sure they had not entered for that day. If so, they would be redirected to an error page explaining the 1 entry per day policy. However, if the date validated, it would count 1 in their individual counter.
Can Forms to Go aid in this, or do you have any suggestions on how to set this up.
Currently, I'm thinking of a php script that included the current date, and include that in a hidden field in the form. This would check against a row in the database that included the dates each hit was validated and recorded. If the date is not present, then it would validate and record as one hit.
Any suggestions would be greatly appreciated.
Thanks