Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to modify CSS with PHP?
Re: How to modify CSS with PHP?
Sounds interesting. How do you get the browser info with PHP?
I liked Satya's suggestion:
I assume it would look something like this:
<meta ... >
<title ... >
I haven't tried this yet, but I assume the idea is to use $_GET in style.php.
I have a form on a page with a select drop-down that posts a 'color' value that
changes the page background color - the value resets to 'change background' (or
null) after postback. The problem is I want to add a couple of links: "normal
font" and "large font", in addition to the select background option. But if the
user clicks one of these links, the page reloads with a null post variable and,
if a background color was previously selected, it's lost after selecting the
Because the select option resets to null after the postback, I have no way of
knowing what the user had selected (if anything). So I'm not sure if a
style.php file is going to help me. And I'm not sure I want to deal with page
state just to include those font size links.