Receive data from and submitted through a modal window

Asked

Viewed 44 times

-1

I have the modal window below... I cannot receive the data from the modal window Ubmit on the registration page.php... I don’t have much experience with javascript. Please help me!

java script:

<script>
      $(document).ready(function()
      {
        $('.submit').on('click', function()
          {  
            

          });

      });
    </script>
Janela Modal

<div class="modal fade" id="resolverMulta" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <form method="POST" action="cadastrar.php" id="form_Confirm" autocomplete="off">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Confirmar Pagamento da Multa</h4>
      </div>
      <div class="modal-body">
        <div id="admalert" class="alert alert-danger" style="display:none;"> <strong>Erro!</strong> Administrador ou Senha Errados. </div>

        <label id="lbl_oco">Ocorrência: <span class="oco" style="color: red"></span></label><br>
        <label id="lbl_matri">Matrícula: <span class="matri" style="color: red"></span></label><br>
        <label id="lbl_mult">Multa: <span class="mult" style="color: red"></span></label>
        
        <br> 
        <br>
        <h4 class="modal-title" id="myModalLabel">Autenticação</h4>
        <div class="modal-footer">
        </div>
          <div class="form-group col-md-4">
                      <label for="inputAdministrador">Adm</label>
                       <input class="form-control" id="inputAdministrador" name="adm_nome" type="text" placeholder="Adm" style="height: 42px; backface-visibility: none;">
        </div>
         <div class="form-group col-md-4">
                      <label for="inputadmPass">Password</label>
                       <input class="form-control" id="inputadmPass" name="adm_pass" type="password" placeholder="Senha" style="height: 42px;">
        </div>
      
        
        
      </div>
      <br>
      <br>
      <br>
      <br>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
        <a type="submit" class="btn btn-primary confirmar">Confirmar</a>
      </div>
    </form>
    </div>
  </div>
</div>

1 answer

-1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.