Have you done much PHP before and ever had any problems?
I would try changing all of the <? bits of code to <?php firstly ( i had a problem with this once)
and change
to:color:<?=$pgcol?>;
color:<?php echo $pgcol; ?>
I have a site by where i want to pass a different variable into a css file depending upon the page.
Currently i am using:-
and then within the css file style.php am using:-Code:<? $pgcolor="#000000"; ?> <link href="style.php?pgcolor=<? echo $pgcolor;?>" type="text/css" rel="stylesheet">
This isnt working for me.. Is there a way of doing it?Code:<?php header("Content-type: text/css"); $pgcol= $_GET['pgcolor']; ?> body { color:<?=$pgcol?>; } <? ?>
Thanks
Have you done much PHP before and ever had any problems?
I would try changing all of the <? bits of code to <?php firstly ( i had a problem with this once)
and change
to:color:<?=$pgcol?>;
color:<?php echo $pgcol; ?>