<?php include('./constant/connect.php'); ?>

<form method="POST" action="save_appointment.php">
    <input type="text" name="name" placeholder="নাম" required><br>
    <input type="text" name="phone" placeholder="মোবাইল" required><br>

    <select name="doctor_id">
        <?php
        $res = $connect->query("SELECT * FROM doctors");
        while($row = $res->fetch_assoc()){
            echo "<option value='".$row['id']."'>".$row['name']."</option>";
        }
        ?>
    </select><br>

    <input type="date" name="date"><br>
    <input type="time" name="time"><br>

    <button type="submit">Submit</button>
</form>