[thelist] Re : PHP Include Script
Burhan Khalid
burhankh at hotmail.com
Sat Feb 9 13:33:00 CST 2002
Hey :
I had a similar situation trying to get different stylesheets to show up on
command (for different color schemes). Here is my PHP code snip. Hope this
helps :
if ($HTTP_GET_VARS["theme"]) { $site = $HTTP_GET_VARS["theme"].".css"; }
A few notes :
The way this worked was : somepage.php?theme=brown
Then, I simply appended .css to the variable name, and stored it in $site.
Then, in my HTML section :
<style type="text/css"> @import "<?= $site; ?>"; </style>
This worked for me. Hopefully this will point you in the right direction.
Regards,
Burhan Khalid
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
More information about the thelist
mailing list