title: Redirect URL using HTML form parameters using javascript
body: <p>I have an HTML page which has form parameters that are hidden and I would like to redirect to another URL as soon as I click on the HTML page passing the same parameters. I am not able to redirect currently with the id and password.</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;script language="javascript"&gt;
  function runReport()
  {
  document.mstr.submit();
  }
  &lt;/script&gt;
  &lt;form name = "mstr" action = "www.xyz.com" method = "post"&gt;
  &lt;input type="hidden" name="uid" value="xyz" /&gt;
  &lt;input type="hidden" name="pwd" value="xyz" /&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>