PDA

View Full Version : Survey that only appears once/ Cookies



Avienne
01-24-2012, 11:36 AM
Hi everyone,

I made a questionnaire (can be embedded in the homepage or with a link, does not matter) . As it is meant for research, I need to ensure that no one can fill it out twice. I know you can use the IPs but they may change when reconnect or cookies but I lack the skills..

So I was wondering if it would be possible to integrate the survey into this script I found

http://www.dynamicdrive.com/forums/showthread.php?t=36460

(text appears only once, days when it will appear again can be manipulated)

so that the questionnaire would appear only once?

and below would be an example of the survey (sorry if this is the wrong style, not sure about the [CODE] example..):

Would be great if you could help me!



-----

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><link rel="shortcut icon" href="//ssl.gstatic.com/docs/spreadsheets/forms/favicon_jfk.png" type="image/x-icon">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Questionnaire</title>

<link href='/static/spreadsheets/client/css/779923916-published_form_compiled.css' type='text/css' rel='stylesheet'>
</head>
<body class="ss-base-body" dir="ltr" itemscope itemtype="http://schema.org/CreativeWork/FormObject">

<div class="ss-form-container">
<div class="ss-form-heading"><h1 class="ss-form-title">Questionnaire</h1>
<p></p>


<hr class="ss-email-break" style="display:none;">
<div class="ss-required-asterisk">* Required</div></div>
<div class="ss-form"><form action="https://docs.google.com/spreadsheet/formResponse?formkey=dC1TSTBNY3NsZ3lTX0JGZzFxTHhtTXc6MQ&amp;ifq" method="POST" id="ss-form">

<br>
<div class="errorbox-good">
<div class="ss-item ss-item-required ss-checkbox"><div class="ss-form-entry"><label class="ss-q-title" for="entry_0">Working?
<span class="ss-required-asterisk">*</span></label>
<label class="ss-q-help" for="entry_0"></label>
<ul class="ss-choices"><li class="ss-choice-item"><label class="ss-choice-label"><input type="checkbox" name="entry.0.group" value="no" class="ss-q-checkbox" id="group_0_1">
no</label></li> <li class="ss-choice-item"><label class="ss-choice-label"><input type="checkbox" name="entry.0.group" value="yes" class="ss-q-checkbox" id="group_0_2">
yes</label></li> <li class="ss-choice-item"><label class="ss-choice-label"><input type="checkbox" name="entry.0.group" value="sometimes" class="ss-q-checkbox" id="group_0_3">
sometimes</label></li>
</ul></div></div></div>
<br> <div class="errorbox-good">
<div class="ss-item ss-text"><div class="ss-form-entry"><label class="ss-q-title"


<div class="ss-item ss-navigate"><div class="ss-form-entry">
<input type="submit" name="submit" value="Send"></div></div></form>
<script type="text/javascript">