Form Post Update don't work

Form Post Update don't work

Hi,

I have try this but not work, what it's my error? thanks

  1. <script type="text/javascript">
  2.     
  3. $(document).ready(function() {
  4.     $("#submitCliente").click(function(e){
  5.  
  6.         var formData = $("#updateClienteForm").serialize();
  7.  
  8.         $.ajax({
  9.             type: "POST",
  10.             url: "update_cliente.php",
  11.             cache: false,
  12.             data: formData,
  13.             success: onSuccess
  14.         });
  15.  
  16.         e.preventDefault();
  17.     });
  18. });

  19. </script>            

  1. <div data-role="content" data-theme="c">
  2.                     <form id="updateClienteForm" method="post">
  3. <label for="ragioneSociale">Ragione Sociale:</label>
  4. <input type="text" name="ragioneSociale" id="ragioneSociale" value="'.$r->RagioneSociale.'"/>
  5. <label for="idCliente">idCliente:</label>
  6. <input type="text" name="idCliente" id="idCliente" value="'.$r->idCliente.'"/>
  7. <div button data-icon="check" data-theme="b" id="submitCliente" type="submit">Salva</button></div>
  8.    </form>
  9. </div>

update_cliente.php
  1. <?php
  2.     include 'connection.php';
  3.     
  4.     $id_cliente = $_GET["idCliente"];
  5.     $RagioneSociale = $_GET["RagioneSociale"];

  6.     $sql = "UPDATE clienti SET RagioneSociale = ".$RagioneSociale." where idCliente = " . $id_cliente;
  7.     
  8.     mysql_query($sql);
  9. ?>