I have a table nested inside a form to align the input fields. The form is a Boostrap Modal class and I want to pass the values inside the input fields to entryHandler.php
for processing. I'm using the method = "get"
in the form so I should be able to see the input values reflected in the url. However, nothing happens when I click the submit button. As if no code ran. Is there something wrong with the structure of my code?
<div class="modal fade addEntryModal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Add Entry</h4>
</div>
<div class="modal-body">
<div class="container col-md-offset-2 col-md-8" id="form">
<form action="entryHandler.php" method="get" class="form-group">
<table class="table center" id="recordForm">
<tr id="frm-code">
<td>Code</td>
<td>
<input type="text" class="form-control" id="txt-code">
</td>
</tr>
<tr id="frm-title">
<td>Title</td>
<td>
<input type="text" class="form-control" id="txt-title">
</td>
</tr>
<tr id="frm-unit">
<td>Unit</td>
<td>
<input type="text" class="form-control" id="txt-unit">
</td>
</tr>
</table>
<div class="modal-footer">
<div class="pull-right row">
<input type="submit" id="hrefSave" name = "entrySubmission" class="form-control pull-right" value = "Add" data-dismiss="modal">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>