You can try out my experiment here: https://moryscarter.com/vespr/avatars/
It allows the current participant to compare themselves with previous participants.
You’d need access to a web server which runs php/MySQL (or equivalent, but that’s what I code in). Then it would be a case of uploading the answer from each participant and then adding it to the URL for the next participant.
Here’s the core of the code that starts the experiment:
<form action="https://run.pavlovia.org/Wake/self-bias-avatars/html/" method="get" name="form1" target="_self" class="style1" id="form1">
<p>How do you describe your gender?
<select name="gender" style="font-size: 20pt">
<option value="">Please select</option>
<option value="W">Woman</option>
<option value="M">Man</option>
<option value="N">Non-binary</option>
<option value="I">In another way</option>
<option value="P">Prefer not to say</option>
</select>
</p>
<p>How old are you (in years)?
<input name="age" type="text" style="font-size: 20pt"/>
</p>
<p>Please tick if you are happy for your anonymous results to be used for research purposes.
<input name="consent" type="checkbox" id="consent" value="1" style="height: 30px; width: 30px"/>
</p>
<?php
$query = "SELECT AVG(youscore) AS youav, AVG(relationscore) AS relav, AVG(youtime) AS youtimav, AVG(relationtime) AS reltimav, COUNT(*) AS participant FROM psych_workshop_avatars WHERE 1";
$Result = mysqli_query($link,$query) or die(mysqli_error($link));
if (mysqli_num_rows($Result))
{
$row = mysqli_fetch_row($Result);
$youav = $row[0];
$relav = $row[1];
$youtimav = $row[2];
$reltimav = $row[3];
$participant = $row[4];
}
echo "<input type=\"hidden\" id=\"youav\" name=\"youav\" value=\"$youav\">";
echo "<input type=\"hidden\" id=\"relav\" name=\"relav\" value=\"$relav\">";
echo "<input type=\"hidden\" id=\"youtimav\" name=\"youtimav\" value=\"$youtimav\">";
echo "<input type=\"hidden\" id=\"reltimav\" name=\"reltimav\" value=\"$reltimav\">";
echo "<input type=\"hidden\" id=\"participant\" name=\"participant\" value=\"$participant\">";?>
<input type="submit" name="Submit" value="Start experiment" style="font-size: 30pt"/>
</p>
</form>
And here is the results page that updates the database:
<?php
$participant = $_GET["participant"];
$gender = $_GET["gender"];
$age = $_GET["age"];
$AvatarSelf = $_GET["AvatarSelf"];
$AvatarSelfMatch_score = $_GET["AvatarSelfMatch_score"];
$AvatarSelfNomatch_score = $_GET["AvatarSelfNomatch_score"];
$AvatarStrangerMatch_score = $_GET["AvatarStrangerMatch_score"];
$AvatarStrangerNomatch_score = $_GET["AvatarStrangerNomatch_score"];
$AvatarSelfMatch_rtcm = $_GET["AvatarSelfMatch_rtcm"];
$AvatarSelfNomatch_rtcm = $_GET["AvatarSelfNomatch_rtcm"];
$AvatarStrangerMatch_rtcm = $_GET["AvatarStrangerMatch_rtcm"];
$AvatarStrangerNomatch_rtcm = $_GET["AvatarStrangerNomatch_rtcm"];
$AvatarSelfMatch_percent = $_GET["AvatarSelfMatch_percent"];
$AvatarSelfNomatch_percent = $_GET["AvatarSelfNomatch_percent"];
$AvatarStrangerMatch_percent = $_GET["AvatarStrangerMatch_percent"];
$AvatarStrangerNomatch_percent = $_GET["AvatarStrangerNomatch_percent"];
$query = "SELECT AVG(youscore) AS youav, AVG(relationscore) AS relav, AVG(youtime) AS youtimav, AVG(relationtime) AS reltimav, COUNT(*) AS participant FROM psych_workshop_avatars WHERE 1";
$Result = mysqli_query($link,$query) or die(mysqli_error($link));
if (mysqli_num_rows($Result))
{
$row = mysqli_fetch_row($Result);
$youav = round($row[0]);
$relav = round($row[1]);
$youtimav = round($row[2]);
$reltimav = round($row[3]);
$participant = $row[4];
}
$trials = $AvatarSelf_trials+$AvatarStranger_trials;
$query = "INSERT INTO psych_workshop_avatars VALUES ('', '$participant', '$gender', '$age', '$trials', '$AvatarSelf_percent', '$AvatarStranger_percent', '$AvatarSelf_rtcm', '$AvatarStranger_rtcm', '$ip', '$AvatarSelfMatch_percent', '$AvatarSelfNomatch_percent', '$AvatarStrangerMatch_percent', '$AvatarStrangerNomatch_percent', '$AvatarSelfMatch_rtcm', '$AvatarSelfNomatch_rtcm', '$AvatarStrangerMatch_rtcm', '$AvatarStrangerNomatch_rtcm', '$consent')";
$Result = mysqli_query($link,$query) or die(mysqli_error($link));
?>