Hi there,
So, my company is wanting to do target "sell pages" on other sites and have them link directly to the shopping cart and add the item at the same time. OK I found out how to do that thanks to this thread: http://www.zen-cart.com/forum/showthread.php?t=61008
Then I needed to find a way to hide some things on the page if the user is coming from a "sell page" because my boss doesn't want them to be able to navigate out of the "buying" path.
So here's what I did. The form that submits directly to the shopping cart is coded like so:
PHP Code:
<h2>CLICK TO BUY</h2>
<form name="cart_quantity" action="http://www.mysite.com/store/index.php?main_page=product_info&products_id=2&action=add_product" method="post" enctype="multipart/form-data">
<input type="hidden" name="cart_quantity" value="1" />
<input type="hidden" name="products_id" value="2" />
<input type="hidden" name="sell_page" value="1" />
<input type="submit" value="BUY NOW!" />
That works great to put the item directly in to the cart. Then I made a change to html_header.php so that it looks for the "sell_page" variable in the request and if it's there sets a cookie like so:
PHP Code:
// MOD IF THIS PERSON CAME FROM A SELL PAGE SET A COOKIE FOR THAT
if (!empty($_REQUEST['sell_page'])) {
setCookie("sell_page", "1");
}
Then I proceed to show/not show things on the page based on this cookie.
But here's the problem... It doesn't want to work in IE! It's been working fine in Firefox but in IE it's like I'm not sending the parameter at all. I use HTTPWatch so I can SEE that it's being sent in the POST but somehow the PHP in header_html is just missing it! 
Is it related to the redirect that happens? Does anyone have any pointers for why this might be happening? PLEASE help!