title: Add post variable value on form submit using jquery
body: <p>I have to send some POST variables with values when submitting the form. I have to send <code>variable_1</code> and <code>variable_2</code></p>
  
  <p>In result.php I need to get the value of <code>$_POST['variable_1']</code> and <code>$_POST['variable_2']</code>. How can I do this?</p>
  
  <pre><code>&lt;form action="result.php" method="post"&gt;      
    &lt;input type="submit" name="submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>$('form').submit(function () { 
    var variable_1 = "test";
    var varible_2 = "test2";       
  });
  </code></pre>
  
  <p>Please help.</p>