Conflict with Add to cart Button action="" and Template page
Hi, my product_detail page works fine until I add the Add to Cart Button and all the design stops working. If I erase the action from the form the page I can see the page design again. The form is added by the Add to Cart behavior:
<form name="eCart2_1_ATC_<?php echo $row_productos["ProductID"]; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlentites($_SERVER["QUERY_STRING"]):""; ?>">
<input type="hidden" name="eCart2_1_ID_Add" value="<?php echo $row_productos["ProductID"]; ?>" >
<input type="hidden" name="eCart2_1_Quantity_Add" value="1" >
<input type="submit" class="button" value="Add to Cart" name="eCart2_1_ATC">
</form>
My recordset is like has this: WHERE ProductID = colname and colname is equal to $_GET['ProductID'] if I change my recordset like this WHERE ProductID = 1 or any other number, the Cart button works fine but my page is dynamic and I sell several products so I cannot put a single number in the recordset. I need to get the product ID from somewhere.
Thank you in advance for your help.