Posted: Wed Dec 29, 2010 10:27 pm
Post subject: Quizmaker Trial Version - test.php / index.php scripts
Hello, I'm trying to use the $_POST variables in either the test.php or index.php scripts to write the quiz results to our MySQL database. The only way they work, is when they're hard coded as in the test.php script:
$_POST['v'] = '1';
$_POST['sp'] = '3';
$_POST['psp'] = '80';
// $_POST['ps'] = '3';
$_POST['tp'] = '90';
$_POST['sn'] = 'test';
$_POST['se'] = 'firstname.lastname@example.org';
$_POST['te'] = 'email@example.com';
$_POST['qt'] = 'New Quiz';
$_POST['dr'] = file_get_contents('testReport.xml');
How can I retrieve the actual quiz results, rather than using the hard coded values?
Any help is greatly appreciated - thanks!