View Full Version : Changing CSS of something within a PHP variable?

03-19-2011, 11:41 PM
As part of an experiment/summer-time job, I need a website. I started one, and it's going well-ish at the moment.

My problem is that inside of one file (index.php) I have included another via PHP (header.php) and inside that one is login.php. To display the login form, I have it inside of a PHP variable, and then I just echo it. This will make it easier for me to change it later on, once someone is logged in.

The only real problem I have with that is that some of the CSS no longer works. Is there any way to tell the .css file to go inside of the variable?

And PS: What website is good for hosting for free? I tried xtreemhost, but their MySQL abilities are shaky. I need PHP, MySQL, and it needs to be free.

03-22-2011, 12:29 PM
almost free