Ihr if -Anweisung prüft !empty($_POST['doa']) , aber Ihr Formular enthält kein doa :
<label for="doa">Date of Admission:</label>
<input type="text" name="dob">
Dieser <input> sollte wahrscheinlich name="doa" haben statt dob .
Ihr if -Anweisung prüft !empty($_POST['doa']) , aber Ihr Formular enthält kein doa :
<label for="doa">Date of Admission:</label>
<input type="text" name="dob">
Dieser <input> sollte wahrscheinlich name="doa" haben statt dob .