cross check votes on dynamic page
I am creating a photo contest that needs to work by tomorrow (fun never ends)
I created a database with a table to store the name, email address, IP, time stamp, pet name, image and another table to store the votes, time stamps, email address, Pet Name and IP.
I will have the user register, upload and vote for their pet, or have a friend vote a pet after they register.
My Question is; The contest allows only one vote per email address. If I have all of the entrants photos with a vote button underneath dynamically populate the page, how can I check to make sure they have not already voted.
I am going to make the page only accessible to registrants.
Any help would be greatly appreciated.