View Single Post
Old 01-21-2004   #12 (permalink)
malboroman
Lazarus' Child
 
malboroman's Avatar
 
Join Date: Nov 2003
Location: The Netherlands
Posts: 603

Send a message via MSN to malboroman Send a message via Skype™ to malboroman
IT IS WORKING!!!

But now you can notice a tiny little detail... the background color isn't changing... I thought I had solved this by putting some extra php in, but it didn't work... can you see what I did wrong with this script? It probably has something to do with the "if" statements.

PHP Code:
</head>
<body bgcolor="<?php echo $bg;?>" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="preloadImages();">
<?php 

   
if(!$_GET['color']) 
   { 
     
$color "green"
   } 
   else 
   { 
     
$color $_GET['color']; 
   } 
if
(
$color "red")$bg "#860e0e";
if
(
$color "green")$bg "#215712";
if
(
$color "blue")$bg "#1a1759";

?>
This is the first bit of code of my page and I know that the problem is in there somewhere...

Malb
__________________


"Only the dead have seen the end of war."

- Plato
malboroman is offline