I have just created an online website that stores the answers to a survey in a database. The database was made in Microsoft Access and the page is of course coded in Coldfusion. Does anybody know how I can make it so that a person can only complete the survey once instead of as many times as they hit the submit button? I'm guessing you use their IP..but I don't know how.
Why not Mark the database when the survey is compeled.
But then Query the Database if only not compete then get to ask the Question
Can get the user IP address by
ThereIP = Request.Servervariables("REMOTE_HOST")
Here a Littlle bit of
asp that will list all the Request.Servervariables
For Each var in Request.ServerVariables
Call Response.Write("<TD><B>" & var & "</B>:</TD>")
Call Response.Write("<TD>" & Request.ServerVariables(var) _
Last edited by myle; 02-08-05 at 23:07.
hope this help
See clear as mud
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment: Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010 VB based on my own environment: vb6 sp5 ASP based on my own environment: 5.6 VB-NET based on my own environment started 2007 SQL-2005 based on my own environment started 2008 MYLE YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
Thanks for your input..it helped me put the final pieces of the puzzle together! It is officially up and running now and the survey results can't be spammed by the same user anymore!..I guess unless they have dial-up because that is a dynamic IP address....hmm..oh well!