kanal0315 Posted May 8, 2007 Share Posted May 8, 2007 Hello Guys! I had a question that has to do with php. I was hoping to put a fly in javascript banner on my homepage of my osCommerce store, but only on my homepage. If I insert the code into index.php, it shows it on the homepage, but also on pages such as index.php?cPath=25_7. Is it possible to create a loop or something else which checks in php that there is no ?cPath=25_7 or input into the page because I only want to show this fly in javascript banner on the homepage Thanks! Link to comment Share on other sites More sharing options...
oschellas Posted May 8, 2007 Share Posted May 8, 2007 Something like this? <?php if(!isset($HTTP_GET_VARS['manufacturers_id']) && !isset($HTTP_GET_VARS['cPath'])){ ?> your script <?php } ?> Link to comment Share on other sites More sharing options...
kanal0315 Posted May 8, 2007 Author Share Posted May 8, 2007 Something like this? <?php if(!isset($HTTP_GET_VARS['manufacturers_id']) && !isset($HTTP_GET_VARS['cPath'])){ ?> your script <?php } ?> Yep!!!! Thanks SO Much!!! Works Great!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.