view save.php @ 747:6fb0b21d6f85

Hitting enter in any pop-up goes to the next window (or submits, or starts the test)
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Wed, 18 Nov 2015 11:08:52 +0100
parents c64529e5dee4
children e40eb1c67933
line wrap: on
line source
<?php
	header('Access-Control-Allow-Origin: *');
	$postText = file_get_contents('php://input');
	$datetime = date('ymdHis');
	$xmlfile = "save".$datetime.".xml";
	$fileHandle = fopen("saves/".$xmlfile, 'w');
	fwrite($fileHandle, $postText);
	fclose($fileHandle);
?>