How would I load an Include() ONLY the first time the webpage loads?
I want to use one page for my Template and change the content area with include() statements.
I have set it up so that when you press a nav button on the page that it changes the $content variable HOWEVER, when the page first loads the variable is blank.
So, what I did was establish a base
$content = "homepage.html"
HOWEVER, being the idiot I am sometimes, now the page loads, the "homepage.html" as it should but , when I click a nav button, it will do it again instead of loading the new page. (Obvious since I set the variable to a result, duh)
How do I make the page load the homepage.html Inlcude only on the first visit? I assume a cookie could do it but I've never written a cookie either?