+ Start a Discussion

Auto form Submission using JavaScript did not pass the parameters to the redirected page

Hi All,


I have done the auto submission for html form which is inside in VF page.Below is my code ,



<form method="POST" action="SamplePage" name="myForm" id="formone">

<input type="hidden" name="AMT" value="10"/>
<input type="hidden" name="ID" id="cust" value="2"/>
<input type="submit" value="Submit" id="bu" name="i"/>







It automatically submited the form and redirected to "SamplePage".But does not carry the POST values to action page.

values has to passed as parameters to the redirected page.

Please help me to find a solution.


Thanks in advance