results

Created Tuesday 07 April 2020

<html>
<head>
<title> results</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

<?php

$answers=$_POST;

/* confirmation code */
$fullcode = base64_encode(uniqid());

//echo "fullcode is $fullcode <br>";

$longcode = substr("$fullcode", 0 , -2 );
$final = strtoupper(substr("$longcode", -7 ));
// $final = strrev("$code");


#array_unshift($answers,$final);

#$imploded=implode( "," , $answers);

file_put_contents("$_POST[fsuid]-thing-$final", print_r($_POST, true));

echo "<h1> Submission entered </h1>";
echo "Thank you for your submission. <br>";
echo "Here are the answers you provided:";
echo "<pre>";
print_r($answers);
echo "</pre>";


echo "Your confirmation code is <b>$final</b> <br>, please save it in case there is a grading issue. You may want to save this entire page with Ctrl-S. <br>
	<br>NOTE</br> If, after reviewing your answers, you'd like to make a change, simply click back and resubmit the entire quiz. I will have all your submissions, but will only grade the last one. DEFINITELY make note of the code that corresponds to your final answer.";

?>

</body>
<body>