Here is the code from my style.php script The objective: User should be able to select and input different options for the background color and font.
This code snippet with css and php is called stlye.php and is suppose to supply the variables to be used on my outputform.php script.
<?php header("Content-type: text/css");
$gray = "#333";
$dkgreen = "#008400";
?>
body {
background:<?=$gray?>;
color:<?=$dkgreen?>;
}
Here is part of the php script from outputform.php:
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>
Your Output
</title>
<link rel="stylesheet" type="text/css"
media="screen" href="style.php">
I am pretty sure that by using href="style.php" I should be able to see the default colors coming from style.php above:$dkgreen for font color and $gray for background being displayed on outputform.php;however, this is not the case.
What am I doing wrong, or what do I need to read to fix this?
Overall objective is to get the CSS variables to outputform.php where I can manipulate them...give the user options to choose the font color and background color.
It's 5:51AM and Google info is overwhelming and does not want to play nice with me, either that or I need to get sleep.
if ($tired == sleep)
{
print "get more coffee";
}
else
{
print "code badly...yeah, I am going to sleep now...................";
}