-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
37 lines (33 loc) · 814 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE HTML>
<html>
<head>
<title>Problem Solving PHP</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="sudoku">
<div class="inline">
<h3>SUDOKU</h3>
<?php
require('./sudoku.php');
$sudoku = new sudoku();
if (!empty($_POST)) {
echo "<form>";
$sudoku->checkSolution();
echo "<br>";
echo '<input type="submit" value="Reset">';
echo '</form>';
} else {
echo "<form method=\"post\">";
$sudoku = new fourdoku();
$sudoku->generate();
$sudoku->print();
echo "<br>";
echo "<input type=\"submit\">";
echo "</form>";
}
?>
</div>
</div>
</body>
</html>