[ by the way Darren, your email address doesn't work ]

On Mon, 20 May 2002, Darren wrote:
> Ok what i mean is this if the $skin cookie is not present then what can i
> add to this so that it has a default value with the color #000000
> 
> if($skin=="default") { $skin="#6e6e6e"; };
> if($skin=="red") { $skin="#FFFFFF"; };

switch($_COOKIE['skin'])
{
case 'red':
  $framecolor = '#ffffff';
  $backgroundcolor = '#e6ffd8';
  break;
case 'blue':
  $framecolor = '#666666';
  $backgroundcolor = '#aa2231';
  break:
default:
  $framecolor = '#000000';
  $backgroundcolor = '#99cc99';
}



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to