title: Calling servlet after validate data with Javascript
body: <p>I´m doing a web application, its a simple form in HTML, there is a button that calls a javascript function to validate the data in the form, but I need call a Servlet if the data is correct.</p>
  
  <p>I have something like this..</p>
  
  <pre><code>&lt;form method="get" id="form" action="ServletForm"&gt;
  .
  .
  . 
  &lt;input type="submit" value="send" onclick="valiData()"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>the info is validated correctly , but I need to know how can I call the servlet if the data is correct to insert in a database.</p>