Ejemplo n.º 1
0
    </head>
    <body>
        <!--[if lt IE 8]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->

        <!-- Add your site or application content here -->
        <?php 
foreach ($comment->findAll() as $comment) {
    ?>
         <div class="comment">
            <h3> On <?php 
    echo $comment->getSubmissionDate();
    ?>
, <?php 
    echo $comment->getName();
    ?>
 wrote:</h3>
                <p><?php 
    echo $comment->getComment();
    ?>
</p>
         </div>
        <?php 
}
?>
        <form method="post">
            <label>Name: <input type="text" name="name" placeholder="Your Name"></label>
            <label>Email: <input type="text" name="email" placeholder="*****@*****.**"></label>
            <label>Comment: <textarea name="comment" cols="30" rows="10"></textarea></label>
            <input type="submit" value="Save">