Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing what is dispayed depending on the page


summitsource

Recommended Posts

Posted

Hey gang,

 

I need to have different boxes displayed depending on which page is loaded. I use to do it with an if and else but can not remember how, its been a while since ive worked with php and OSCommerce. Can anyone help.

 

TIA

Steve :!:

Posted

Here is an example of what im trying to do, if on index.php display these links otherwise display the original links in the headernavigation. what am i missing.

 

<?php

if (substr == index.php) {

?>

<td class="headerNavigation">different links</td>

<td align="right" class="headerNavigation">different links</td>

<?php

} else {

?>

<td class="headerNavigation">original links<td>

<td align="right" class="headerNavigation">original links<td>

<?php

}

?>

 

TIA

Steve

Posted

You could use: strstr($PHP_SELF,'index.php') or strstr($_SERVER['PHP_SELF'],'index.php') in your IF statement.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...