decode(urldecode($_POST['key'])); // $string = $json->decode($_POST['key']); print "

Thank YOU!

"; print "

Your results have been added to our database. No personal information outside of what you see here has been stored.

You can go back and run more tests, or even better, load up another browser and the submit your tests again!

again ... thanks for your time.

"; print "

Results Submitted:

"; print "
";

		$ua = $string->clientNavigator;
		$dojov = $string->dojoVersion;

		print "Client: ".$ua."\n";
		print "Dojo v".$dojov."\n"; 

		if (is_array($string->dataSet)) {
			print "\nTest Results:";
			// should client serialize a key, or is this safer?
			$dataSet = md5(serialize($string)); 
			foreach ($string->dataSet as $test) {
				$data = array(
					'dataSet' => $dataSet,
					'useragent' => $ua,
					'dojover' => $dojov,
					'testNum' => $test->testNum,
					'testMethod' => $test->testMethod,	
					'testTime' => $test->testTime,
					'testAverage' => $test->testAverage,
					'testCount' => $test->testCount,
					'dijit' => $test->dijit
				);
				print_r($data); 
				add_rec($table,$data); 
			}
		}

		if (is_array($string->errors)) {
			// not saving errors at this point
			print "\nErrors:";
			foreach ($string->errors as $error) {
				print_r($error); 
			}
		}
	print "
"; } function add_rec($table, $data) { if (!is_array($data)) { return FALSE; } $keys = array_keys($data); $values = array_values($data); $field=0; for ($field;$field