= 0 ){
$r = strtoupper(dechex($r_new));
} else {
$r = -1;
}
$g_new = floor($_POST["g"]);
if ($g_new <= 255 && $g_new >= 0 ){
$g = strtoupper(dechex($g_new));
} else {
$g = -1;
}
$b_new = floor($_POST["b"]);
if ($b_new <= 255 && $b_new >= 0 ){
$b = strtoupper(dechex($b_new));
} else {
$b = -1;
}
?>
Enter a color in RGB format.
Your hexidecimal code is #" . $r . $b . $g . ".";
print "Make color header";
}
if ($_GET["header"] && ($r != -1 && $b != -1 && $g != -1)) {
$rgb = $r . $b . $g;
setcookie("header", $rgb, time()+3600);
}
?>