I have a page with a list of products (products.htm). When the user clicks the buy now button it opens another page (page2.php).
In page two I have imported through hidden variables all the variables on products.htm (using $_POST). A script will then determine which company was selected…
If Company A was selected I want to submit a form to open a new page called CompA.php (importing all the same hidden variables)
If Company B was selected I want to submit a form to open a new page called CompB.php (importing all the same hidden variables)
And so on…
I have got it working except for submitting a new form (CompA.php/CompB.php). I tried something like this:
[code]
echo “<form method=’post’ action=’/CompA.php’>”;
echo “<input type=’hidden’ value=’$_POST[“CompanyName”]’>”;
echo “<input type=’hidden’ value=’$_POST[“Product”]’>”;
echo “document.this.form.submit()”;
echo “</form>”;
it doesn’t submit the form but… if I make an active submit button then it does work…
What I want to know is how to force a submit like in javascript..
Can anyone help me???