title: javascript page redirect with POST method
body: <p>I have a website that redirects a user to a external host for payment processing. When the user is returned to my website depending on the results of the payment processing I need to redirect the user to a final webpage with POST method so their order can be completed. I have the code below which works on Chrome and Opera browsers. On Firefox and IE browsers it fails and the user ends up with a blank page. What do I need to modify for this to work on all browsers?</p>
  
  <pre><code>var cSecurem = 'https://www.website.com/';
  
  function gotofinalpage(p1,p2) { 
      setLoginCookie('secure');
      var cURL = cSecurem + 'bh/finalpage.r?param1=' + p1 + '&amp;param2=' + p2;
      var myForm = document.createElement("form");
      myForm.method="post" ;
      myForm.action = cURL ;
      myForm.submit() ;
  }
  </code></pre>