Public feed
#600393
Controller.php
<?php
class Controller {
public function __construct() {
echo showForm();
}
private function showForm() {
return '<form method="post">
<table>
<tr>
<td>Merk</td>
<td><input type="text" name="merk"></td>
</tr>
<tr>
<td>Type</td>
<td><input type="text" name ="type"></td>
</tr>
<tr>
<td>Prijs</td>
<td><input type="text" name = "prijs"></td>
</tr>
<tr>
<td align="right" collspan=2>input
type="submit"</td>
</tr>
</table>
</form>';
}
}
?>
index.php
<html>
<head></head>
<title></title>
<body>
<?php
require 'Controller.php';
$controller = new Controller;
?>
</body>
</html>