Anyone know how to set up to where the form can only be submitted once from one computer. I think you can use cookies and set the time to 1209600 (which is 2 weeks in seconds - which would be sufficient), but I can't figure out exactly where to put this, or if it is even a correct code - probably missing something... Can anyone show me where to put this????
setcookie("mycookie", $name, time()+1209600);
here's the code for the html portion of my form (it's just 2 yes or no questions and an email field):
<script language="javascript" >
function checkRadioFields() {
approve = document.surveyform.approve;
decision = document.surveyform.decision;
email = document.surveyform.email;
if ((approve[0].checked==false) && (approve[1].checked==false))
return false;
} else if ((decision[0].checked==false) && (decision[1].checked==false))
return false;
} else if (email.value.length < 1)
return false;
} else {
return true;
}
}
</script>