What I want to do now, is use a form button so it posts data to a particular page.
I tried using the form below to replace the button but it does not work:
<form action="http://www.mysite.com/myPage.php" method="post" enctype="multipart/form-data" name="myPage"> <input name="myData" type="hidden" value="{$product.data}" /> <input name="dataButton" type="submit" value="submit" /> </form>
It seems CS-Cart takes over the action and/or post so it does not work like a regular form. When I hover over the submit button, it shows index.php in the title when it should be the page I have specified in the action. When the form button is clicked, it looks like it submits to index.php instead of the page I have specified in the form action.
I tried get and got the same results.
How can I post data from this template to myPage.php when the button is clicked?