Jump to content

Adding background color to a include file?


swright

Recommended Posts

Hi, i have code which is included to a website i run. It shows fine on a dark back ground on all browsers apart from IE8 or lower. On these browsers the box and button show on a white box instead of a dark box. (inserted on page via Iframe)

 

Is there a way to set the background to a certain color?

 

<?
session_start();
require_once("config.php");

if($_GET["action"] == "subscribe")
{	
	$fp = fopen("$db_file", "r");
	$file_text = fread($fp, 999999);
	fclose($fp);

	$subscribers = explode(",",$file_text);
	foreach($subscribers as $subscriber)
	{
		if($subscriber == $_GET["email"])
		{
			$result = 1;
			break;
		}
		else
		{
			$result = 0;
		}
	}

	if($result == 1)
	{
		print "The email you provided alreay exists. <a href='javascript:history.back(-1)'>please try again</a>";
	}
	else
	{
		$fp = fopen("$db_file", "a+");
		fwrite($fp, $_GET["email"] . ",");
		fclose($fp);
		print "<font face=arial size=2 color=white>Subscribed successfully.</font>";
	}
}
print "
<form action='includethis.php'>
<input type='text' name='email' size='26' value='Enter your email' onfocus=\"this.value=''\">
<input type='submit' value='Subscribe'>
<input type='hidden' name='action' value='subscribe'>
</form>
";
?>

 

 

Any help would be much appreciated

 

Ste

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.