OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
passing variables to external css?
This page's ID:
28816
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
make sure to pass the parameters in GET to the external stylesheet, i.e:[code]<!--here be doctype declaration, head, ... --> <link type='stylesheet' media='screen,printer' href='style.php?link=<? echo $_GET['link']; ?>' /> <!-- here be monsters, script tags, the body and all the malarkey -->[/code]Hope that helps Another idea would be to use a session variable that you set in the main PHP script and use it in the 'child' script such as the one generating the stylesheet. [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 01-11-2007 22:38)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »