Home >Backend Development >PHP Tutorial >PHP automatically changes the background color according to the passed hexadecimal color code_PHP tutorial

PHP automatically changes the background color according to the passed hexadecimal color code_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:28:191227browse

Copy code The code is as follows:

echo "";
echo "< ;head>Change background color";
if($_POST[inputColor]==""){
$inputColor="ffffff";
}
echo "";
echo "
";
echo "Please fill in the color of html";
echo "";
echo "";
echo "
";
echo "";
echo "";

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/802224.htmlTechArticleCopy the code as follows: ?php echo "html"; echo "headtitle changes background color/title/head"; if($_POST[inputColor]==""){ $inputColor="ffffff"; } echo "body bgcolor=#{$_POST[inputCol...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn