title: Two different actions on form submit
body: <p>I have a form with a submit button. I have called a function on click of submit button.</p>
  
  <pre><code>function actionPage(form1)
  {
    form1.action="action1.php";
    form1.submit();
    return(true);
  }
  </code></pre>
  
  <p>Now I want that the form data should be submitted to two different pages. These pages are on different servers.</p>
  
  <p>I know that we can send the data to a particular page according to the conditions but I am not sure whether we can submit to two different pages at the same time i.e:</p>
  
  <pre><code>function actionPage(form1)
  {
    form1.action="action1.php";
    form1.submit();
    return(true);
    form1.action="action2.php";
    form1.submit();
    return(true);
  
  }
  </code></pre>
  
  <p>Right now it is showing action1.php</p>