??      gaibu002.php     
<?php
$iro = $_POST['iro'];
if($iro == NULL){
echo "body{background-color : #ffffff;}";
}else{
echo "body{background-color : ".$iro .";}";
}

function td($a,$b,$c){
$iro = array("00","33","66","99","cc","ff");
echo "<th bgcolor ='#$iro[$a]$iro[$b]$iro[$c]' >";
echo "#". $iro[$a] . $iro[$b] . $iro[$c] . "</th>\n";
}

function web_safe(){
$iro = array("00","33","66","99","cc","ff");

for($i=0 ; $i < count($iro) ; $i++){
echo "<table>\n";

for($j=0 ; $j < count($iro) ; $j++){
echo "<tr>\n";

for($k=0 ; $k < count($iro) ; $k++){
td($i,$j,$k);

}
echo "</tr>";

}
echo "</tr> \n</teble> \n<br />\n\n";

}

}

?>