I'm familiar with classic ASP. In ASP, I can announce a variable like this:
Code:
<% dim pageTitle %>
And save this in a separate .asp file. Then, on another page, I can include that .asp file and write ASP code like this:
Code:
<% pageTitle = "Furniture" %>
Which assigns pageTitle a value. With that assigned, I can write an if statement like this (on another, separate page):
Code:
<% if pageTitle = "Furniture" then %>
<script type="text/javascript" src="/skins/hp.load.js"></script>
<% end if %>
Now I've been looking online for how to do this same exact process in PHP, but I'm not having luck. It's important that all of this function in separate files. So the dim happens in one include, the value is assigned in another include file, and the if statement happens in a third file.
Can anyone help?