My Account   Contact Us    
  
» HomeProductsSupportDeveloper CommunityCompany
Advanced Custom Page Colors
Author: King Killa
Category: PHP
Allows user to set the background color and text color, you can set a message if they choose certain colors.
<body bgcolor=<?=$_GET["bg"]?> text=<?=$_GET["txt"]?>>
<center>
<form method="GET">
<input type="text" value="Background Color" name="bg">
<input type="text" value="Text Color" name="txt">
<input type="hidden" value=1 name=done>
<input type="submit" value="Change">
<input type="reset" value=reset>
</form>
<?
if (isset($_GET["done"])) {
if ($_GET["bg"]=="YOUR SPECIFIC BACKGROUND COLOR") {
if ($_GET["txt"]=="YOUR SPECIFIC TEXT COLOR") {
echo "YOUR TEXT IF COLORS ARE USED"; }
else {
echo "You are using $_GET[bg] for your background color and $_GET[txt] for your text color"; }
}
else {
echo "You are using $_GET[bg] for your background color and $_GET[txt] for your text color"; }
}
else {
echo "<font color=white>Choose something</font>";
}
?>


Content Management Powered by ActivEdit  ActivEdit Browser Based WYSIWYG HTML Editor

More Code Samples

Sign up for our newsletter: | Subscribe with RSS: RSS
© ActivSoftware 1999 to 2005 | Privacy Statement