Homepage deletes footer as desired on load than it reappears

Hi,
This is my first time building a site using php files. The footer is in a separate file but I don’t want a part of the code to show on the homepage. The template developer sent me this code to put around the code I don’t want to show:

<?php if($_GET[ 'page' ]!= ' ') { ?> <?php } ?>

and it works when the page loads. However, if you click around in the site and return to the homepage the code I don’t want on the homepage footer reappears. My guess is it is a caching problem. Any ideas???

Its not working because the condition has changed, ‘page’ is no longer empty. once you leave the page, you need to either set the page back to null or change the if statement.

Sponsor our Newsletter | Privacy Policy | Terms of Service