Rubenbbt Posted July 7, 2005 Posted July 7, 2005 On the homepage of my shop I've added some links to some of my products. I just added some urls without the session id like this: http://www.bbt-us.com/product_info.php?products_id=28 http://www.bbt-us.com/product_info.php?products_id=30 Everytime when I click on these links, the session gets lost. How can I change these links to links with the session_id? http://www.bbt-us.com/product_info.php?pro...72392f34f9515fe See homepage: http://www.bbt-us.com
wizardsandwars Posted July 7, 2005 Posted July 7, 2005 You have to use the tep_href_link function. <a href="<?php tep_href_link('product_info.php', 'products_id=30');?>">Your Product</a> ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
Rubenbbt Posted July 7, 2005 Author Posted July 7, 2005 Found the solution, I filled in the complete url: A href="http://www.bbt-us.com/product_info.php?products_id=140" instead of A href="product_info.php?products_id=140"
wizardsandwars Posted July 7, 2005 Posted July 7, 2005 If you use that link, though, wihtout going throug the tep_href_link funciton, sessions will be dropped unless your browser accepts cookies. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
DVDtrix Posted July 7, 2005 Posted July 7, 2005 I had to use the link: <a href="<?php echo tep_href_link('product_info.php', 'products_id=13', 'NONSSL'); ?>">
Recommended Posts
Archived
This topic is now archived and is closed to further replies.