Rev | Line | |
---|
[56] | 1 | <?php |
---|
| 2 | require 'classes/master.php'; |
---|
[58] | 3 | |
---|
[107] | 4 | $questionDBI = new QuestionCreationDatabaseInterface(); |
---|
| 5 | |
---|
| 6 | /* If a question is saved */ |
---|
| 7 | if(isset($_POST['questionCode'])) |
---|
| 8 | { |
---|
| 9 | echo $questionDBI->setQuestionInfo($_POST); // save to DB |
---|
| 10 | } |
---|
| 11 | |
---|
| 12 | $existingQuestions = $questionDBI->getExistingQuestions(); |
---|
| 13 | var_dump($existingQuestions); |
---|
| 14 | |
---|
[56] | 15 | ?> |
---|
| 16 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
---|
| 17 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
| 18 | |
---|
| 19 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 20 | <head> |
---|
[89] | 21 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
[101] | 22 | <title>Question Database</title> |
---|
[66] | 23 | <?php new StyleSheet(); ?> |
---|
[56] | 24 | </head> |
---|
| 25 | <body> |
---|
| 26 | <div id="header"> |
---|
| 27 | <?php new Logo(); ?> |
---|
| 28 | </div> |
---|
| 29 | <div id="wrapper"> |
---|
| 30 | |
---|
| 31 | <div id="content"> |
---|
[104] | 32 | <?php var_dump($_POST); ?> |
---|
[56] | 33 | <?php |
---|
[102] | 34 | new QuestionCreationTool(); |
---|
[56] | 35 | ?> |
---|
| 36 | </div> |
---|
| 37 | </div> |
---|
| 38 | </body> |
---|
| 39 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.