session_start();
include("mysqlFunction.php");
//include("nicknassar.php");
include("ljlibrary.php");
$codon = substr($_SERVER["REQUEST_URI"],10);
$codon = cleaner($codon,"NUM");
//Make a new entry
$sql = "SELECT MAX(unicorn) FROM synopweb";
$xx = mysql_query($sql) or die('Query failed. ' . mysql_error());
$yy = mysql_fetch_array($xx);
$unicorn = $yy[0];
$unicorn++;
$t = time();
$sql = "INSERT INTO synopweb (unicorn, timothy, bubble) VALUES (".$unicorn.", ".$t.", '".$codon."')";
//echo $sql."
";
$rresult = mysql_query($sql) or die('Query failed. ' . mysql_error());
$_SESSION[user] = $unicorn;
echo "
This is a survey about the ways people have learned in different contexts. It's anonymous, and your data will be kept private.
It takes most people 10-35 minutes to fill out (the average is 28), depending largely on how much detail you want to go into. We appreciate that that's a lot of time, but we hope it's thought-provoking, and if this finds you in quarantine, maybe it's a way to kill some time. One respondent will be randomly chosen for a cash prize."; echo"
Have fun, and thanks so much for participating!"; echo "
More Info"; echo "