Good day to all. Help me to understand. So the situation is as follows
There is a form that is sent by pressing a button. There is a need to make confirmation of the action. Namely. Click the send button, a model window appears (or something else), in which there are 2 buttons I confirm, Failure. When you click confirm, the post request is sent to the file handler. And the most important thing is how to implement it: An example of a modal window
<a type="button" class="btn btn-info" href="#" data-toggle="modal" data-target="#basicModal">Выдать</a> <div class="modal fade" id="basicModal" tabindex="-1" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button class="close" type="button" data-dismiss="modal">x</button> <h4 class="modal-title" id="myModalLabel">Заработна плата выдана.</h4> </div> <div class="modal-body"> <button class="btn btn-default btn-block btn-lg" type="button" data-dismiss="modal">Отказ</button> <input type="button" class="btn btn-primary btn-block btn-lg" value="Подтверждаю" onclick="sendRequest('post.php', 'test_var=x=4&y=5')" /> </div> </div> </div> </div>