Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/12/2015, 02:57
javierconesa23
 
Fecha de Ingreso: febrero-2011
Ubicación: Barcelona
Mensajes: 195
Antigüedad: 13 años, 2 meses
Puntos: 1
Respuesta: formulario no recoje campos

Código Javascript:
Ver original
  1. <script>
  2. $("#formcontract").submit(function(e) {
  3.  
  4.     var url = "autorizar.php"; // the script where you handle the form input.
  5.  
  6.     $.ajax({
  7.            type: "POST",
  8.            url: url,
  9.            data: $("#formcontract").serialize(), // serializes the form's elements.
  10.            success: function(data)
  11.            {
  12.                alert(data); // show response from the php script.
  13.            }
  14.          });
  15.  
  16.     e.preventDefault(); // avoid to execute the actual submit of the form.
  17. });
  18. </script>

con este codigo si que los recoje