https://gitlab.inria.fr/lyao/visinmotion
Tip revision: dd99681039060e6dcec83a378405faa3bc4527d3 authored by lyao on 09 December 2023, 20:43:19 UTC
readme updated
readme updated
Tip revision: dd99681
agreed.php
<?php
$data = json_decode(file_get_contents('php://input'), true);
$agree_filename = "../../results/consent.csv";
$exists = file_exists($agree_filename);
$agree_file = fopen($agree_filename, "a+");
if (!$exists){
fwrite($agree_file, "timestamp,participant_id,condition,study_id,session_id");
}
fwrite($agree_file,
PHP_EOL .
date(DateTime::ISO8601) . ',' .
$data["participant_id"] . ',' .
$data["condition"] . ',' .
$data["study_id"] . ',' .
$data["session_id"]
);
fclose($agree_file);
exit;
?>
