title: how to get value from a form before submit
body: <p>i want to get the values from a form before its action redirect it.
  for example in this form, i want to grab the "text_one" and send it to database before it be redirected to google. I also want "text_one" in google too.what should i do?
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form method="post" action="google.com"&gt;
    &lt;input type="text" name="text_one"&gt;
    &lt;input type="submit"&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>