Re: PHP Cookies

From: Date: Mon, 20 May 2002 19:18:19 +0000
Subject: Re: PHP Cookies
Groups: php.general 
Request: Send a blank email to php-general+get-98505@lists.php.net to get a copy of this message
[ 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'; }

« previous php.general (#98505) next »