Public feed #600393

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-07-02 20:51 UTC
rendered paste body
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>