bg color
Posted: Sat Jul 08, 2006 5:08 pm
Just a stupid question probably but I've been searching google and couldn't find anything I understand. I got a PHP page and want the change the color of the entire background to white is there any one that could tell me how to?
My code is:
My code is:
Code: Select all
<?php
$commentaar=$_POST["commentaar"];
$naam=$_POST["naam"];
$email=$_POST["email"];
echo "<TR><TD><CENTER><img src=\"images/top.jpg\"></CENTER></TD></TR>\n";
echo "<form action=\"$_SERVER[PHP_SELF]\" method=\"post\">\n";
echo "<p><font color='#FFFFFF'>Name : </font><input type=\"text\" name=\"naam\"></p>\n";
echo "<p>E-mail : <input type=\"text\" name=\"email\"></p>\n";
echo "<p>Message :</p>\n";
echo "<textarea cols=\"55\" rows=\"5\" wrap=\"soft\" name=\"commentaar\"></textarea><br>\n";
echo "<p><input type=\"submit\" value=\"Commentaar verzenden\"></p>\n";
echo "<hr>\n";
echo "<p><h2>User comments</h2></p>\n";
$tekstfile="commentaar.txt";
if(isset($commentaar)&&naam!=""&&email!=""){
$pointer=fopen($tekstfile, "r+");
$oudcommentaar=fread($pointer,filesize($tekstfile));
$email="<a href=\"mailto:$email\">$email</a>";
$date=date("j.n.Y");
$commentaar=htmlspecialchars($commentaar);
$commentaar=stripslashes(nl2br($commentaar));
$geschreven="<p><strong>$naam</strong> ($email) heeft geschreven op <i>$date</i> :
<br><br>$commentaar</p><hr>\n";
rewind($pointer);
fputs($pointer,"$geschreven\n$oudcommentaar\n");
}
readfile($tekstfile);
?>