title: Submit form with ajax but redirect to another page
body: <p>What should I use in the html and in the jquery if I want upon form submit to (a) execute a certain php file (url-a); (b) redirect to another one.(url-b)</p>
  
  <p>I currently implemented the jquery form plugin. 
  <a href="http://jquery.malsup.com/form/#getting-started" rel="nofollow">http://jquery.malsup.com/form/#getting-started</a></p>
  
  <p>Like so:</p>
  
  <p>step a. included jquery and form plugin scripts;</p>
  
  <p>step b. in html, in the form element:</p>
  
  <pre><code>      &lt;form action="url-a.php"&gt;
            &lt;!--form code inserted here including input elements, etc and submit--&gt;
        &lt;/form&gt;
  </code></pre>
  
  <p>step c. in js, inside <code>document ready</code>:</p>
  
  <pre><code>      $('#form').ajaxForm(function() { 
             $.post("url-a.php", {a: a, b: b});
        }); 
  </code></pre>
  
  <p>Should one of these url links be changed? assume that url-a is the one the ajax should take care of, and I want to redirect to url-b..</p>
  
  <p>Thank you!</p>