I am trying to get data from a form that is in a Bootstrap 3 modal. I want to use the data to write a query that deletes an entry from a database. Do I need to use jQuery and AJAX to get the data from the form in the modal to the query?
Here is my current code for the modal:
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Remove Absence</h4>
</div>
<div class="modal-body">
<form id="insert_form" method="post">
<section class="container-fluid">
<div class="leftColumn">
<label>Student ID: </label><br>
<label>Date: </label>
</div>
<div class="rightColumn">
<input type="text" id="studentidRemoveAbs" placeholder="Student ID"><br>
<input type="text" id="yearRemove" placeholder="Year" value="2018" style="width: 60px;">
<input type="text" id="monthRemove" placeholder="Month" style="width: 60px;">
<input type="text" id="dayRemove" placeholder="Day" style="width: 60px;">
</div>
</section>
<input type="submit" name='submitRemoveButton' class='navButton' value='Remove Absence' id="submitRemoveButton">
</form>
</div>
<div class="modal-footer">
<button type="button" class="navButton" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>