Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webb_srv1/exercises/form-quiz-3/

index.php
login.php
main.php
question1.php
question2.php
question3.php
svar.php

main.php

19 lines ASCII Windows (CRLF)
<?php
$svaralt1 
= array("David""Joel""Per""Peter");
$svaralt2 = array("Programmering""Svenska""Matematik""Biologi");
$svaralt3 = array("Kaffe""Godis""Jordgubbar""Ankor");
$correctCounter 0;

if (!isset(
$_POST['page'])) {
 include(
'question1.php');
}
else if (
$_POST['page'] == 2) {
 include(
'question2.php');
}
else if (
$_POST['page'] == 3) {
 include(
'question3.php');
}
else {
 include(
'svar.php');
}
?>