<body> <table border='1'> <tr> <th>Nome</th> <th>Alterar</th> <th>Remover</th> </tr> <?php foreach ($marcaBDR->todos() as $m) { echo '<tr>' . '<td>' . $m->getNome() . '</td>' . '<td><a href="marca-form.php?id=' . $m->getId() . '">Alterar</a></td>' . '<td><a href="marca-remover.php?id=' . $m->getId() . '">Remover</a></td>' . '</tr>'; } ?> </table> <form id='formMarca' name='formMarca' action='marca-form.php' method='get' > <input type="submit" id='enviar' name='enviar' value='Adicionar Marca' /> </form>