Introduction: This is a detailed page for PHP to change the background color. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 324395 'rolling = 'no'>
<HTML>
<Head>
<Title> change the background color </title>
</Head>
<Body>
<?
Print ("<HTML> \ n ");
Print ("Print ("<title> Change Background Color </title> \ n ");
Print ("/*
** When I was browsed for the first time
**
Use white as the default color.
*/
If ($ inputcolor =
"")
{
$ Inputcolor = "ffffff ";
}
/*
** Use background color to open a webpage
*/
Print ("<body
Bgcolor = \ "# $ inputcolor \"> \ n ");
/*
** Submit the form to this page.
*/
Print ("<form action = \" 37. php \"
Method = \ "Post \"> \ n ");
/*
**
Obtain color data
*/
Print ("<B> Fill in the HTML color Code : </B>
");
Print ("<input ");
Print ("type = \" text \"
");
Print ("name = \" inputcolor \"
");
Print ("value = \" $ inputcolor \ "> \ n ");
/*
**
Submitted button
*/
Print ("<input ");
Print ("type = \" Submit \"
");
Print ("name = \" submit_button \"
");
Print ("value = \" submit color \ "> \ n ");
Print ("</form> \ n ");
Print ("</body> \ n ");
Print ("?>
</Body>
</Html>
More articles on "changing the background color of PHP"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/324395.html pageno: 15.