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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.