I have a modal window made with bootstrap, inside I have a form and I try to send that form to another file to process the information but the button does not do anything, I realized that the button to close the modal window has an attribute called data-dismiss that I suppose causes the window to close, is there an attribute for the form to be sent other than being of the submit type?
This button to close the modal window
<button type="button" class="btn btn-default" data dismiss="modal">Cancel</button>
Button to send the form
<button type="submit" class="btn btn-success" >Save changes</button>
<form name="AddCat" action="./insert" method="post" enctype="multipart/form-data"><br>
NOTE: the file where the form is processed is servlet