</tr>
            <tr>
                <td></td>
                <td><input type="submit" value="Randevuyu Onayla"></td>
            </tr>
        </table>
        </form>
    
    <?php 
        if (isset($_POST['musteriId1'])) {
            //echo  $_POST['musteriId1'];
            $musteri = new Musteri();
            $musteri->setMusteriId($_POST['musteriId1']);
            $musteri->setDoktorId($_POST['doktor']);
            $musteri->setRandevuTarihi($_POST['tarih']);
            $musteri->setSaatId($_POST['saat']);
            $musteri->setMesaj(trim($_POST['mesaj']));
            $musteri->setRandevuOnay(1);
            $musteridao = new MusteriDAO();
            $musteridao->randevuOnayla($musteri);
        }
    }
    $header->footer();
    ?>
</div>
</div>
</body>
</html>
<?php 
}
ob_end_flush();