<form autocomplete="off"> <table class="form-table"> <tr> <th> <label for="squirrels_auto_type">Type:</label> </th> <td> <select id="squirrels_auto_type"> <?php foreach ($auto_types as $auto_type) { ?> <option value="<?php echo $auto_type->getId(); ?> "<?php if ($auto_type->getId() == $auto->getTypeId()) { ?> selected<?php } ?> > <?php echo $auto_type->getTitle(); ?> </option> <?php } ?> </select> </td> <th>