jsd219 wrote:
Well, i already have the css in a seperate file. the file is called
style.php
my header.php calls this file using:
<style type="text/css" media="all">
<!--
@import url("css/style.php");
-->
</style>
i have tried everything but i can't seem to make the style.php file
get the page id so my code will work.
Uh, what is the flow? You have file1 calling the page you want. I
don't know when the php is run in the case of an "@import". If it is
done at the client level, then all you are doing is passing in a php
script that the client has no idea on how to handle. Why not do a view
source to answer that question?
In any case, if you change "@import" to "require", with the appropriate
tags in style.css or surround the require with the tags, then it should
work.