scrolling bit works great thanks i had alook last night i assume that the default colour is white as no colour is define would it work to integrate a css style into the coding or would it have to be a seperate sheet is is it alot more simple just changing the back ground colour
the coding i have from opensource documents is
<?
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=blue>congratulations, your have successfully subscribed to the mailing list</font>";
}
}
print "
<form action='includethis.php'>
<input type='text' name='email' size='26' value='Enter your email' onfocus=\"this.value=''\">
<br>
<input type='submit' value='Subscribe'>
<input type='hidden' name='action' value='subscribe'>
</form>
";
?>
where and how could i implement the css into the file im only beginner at this and learning sorry to be a pain but when i try to add into it just messes it up and stops it working
Last edited by clarky87; 7th July 2010 at 18:21.
|
Recent comments
13 hours 18 min ago
16 hours 13 min ago
17 hours 27 min ago
18 hours 51 min ago
20 hours 29 min ago
21 hours 57 min ago
23 hours 11 min ago
1 day 15 hours ago
1 day 15 hours ago
1 day 19 hours ago