HTML Php

print "";
print "";
print "HTML color codes";
print "";
print "";
print "Enter the code per colors

";
print "
method=\"post\">";
print "Red :
";
print "Green :
";
print "Blue :

";
print "";
print "

Main page file=htmlcolor.php\">Show source";
print "
";
print "";
print "";
if ($action=="getcolor") {
if (empty($red)) {
print "Enter a RED color";
exit();
} elseif (empty($green)) {
print "Enter a GREEN color";
exit();
} elseif (empty($blue)) {
print "Enter a BLUE color";
exit();
}
print "Color code is:";
printf("#%X%X%X", $red, $green, $blue);
}
?>