Page 1 of 1

Include

Posted: Thu Aug 25, 2011 6:08 pm
by Supplement
if($str1[REF] == 'index.php')
{
echo '<div class="solid_divider"><img src="images/spacer.gif" width="1" height="1" alt="spacer"></div><br>
<p><font size="2px">All my content will go here.</p>
</font><br>'; }

I have this if statement / string and I want it to be and Include on the home page and the homepage only. The problem is when i call it out by index.php it appears on other pages when the dynamic URLS have www.mysite.com/index.php?category_name=this

Thanks in advance for any help.

Re: Include

Posted: Thu Aug 25, 2011 6:43 pm
by xtiano77
Without seen the whole page code, I would suggest trying to match the complete URL instead of the file name. You can clean up the URL with the str_replace( ) method removing any characters starting with "?" onwards, then check it against the specific URL for the login page. Hope this helps.

Re: Include

Posted: Thu Aug 25, 2011 7:53 pm
by Supplement
Thanks, I'll give that a try.