Re: Remembering who answered an authenticated survey
Florian Hars <[email protected]> Wed, 29 Mar 2006 12:23:24 +0200
| Newsgroups | gmane.comp.apache.mod-survey.general |
|---|---|
| Message-ID | <[email protected]> |
Florian Hars wrote:
> Is there a way to remember who answered a survey?
To follow up on myself (while still hoping that this funny majordomo.miun.se
will come alive again in the next few days), this seems to solve this problem:
{&
print "<CUSTOM ESCAPED=\"no\" VARIABLES=\"token\">\n";
print "<input type=\"hidden\" name=\"token\" value=\"";
if ($self->{ARGUMENT}) {
my $t = $self->{ARGUMENT}->ArgByName("token");
$t =~ tr/a-zA-Z0-9//cd;
print $t;
} else {
print "BROKEN";
}
print "\" />\n</CUSTOM>\n";
&}
Putting the same code (minus the VARIABLES part) on every page seems to solve
my problem of threading authentication along the pages of a longer survey, too.
Is this approach sound?
Yours, Florian
Skickat av Florian Hars <[email protected]>
till survey-discussion