Okay, den her virker, du skal ikke sætte noget ind i den:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<!-- TILFØJ SIDEN TIL FORETRUKNE-->
<script type="text/javascript">
var bookmarkurl=window.top.document.location
var bookmarktitle="Tips og Tricks"
function addbookmark()
{
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</script>
<param NAME="wmode" Value="transparent";>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>.: N O T I F I E R</title>
<style type="text/css">
<!--
body {
background-image: url(mellemrum-3.jpg);
background-repeat: repeat-x;
background-color: #000000;
margin-left: 0px;
margin-right: 40px;
}
.style1 {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
}
.style2 {color: #000000}
.style11 {font-size: 3px}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #FFFFFF;
text-decoration: none;
}
a:hover {
color: #0090A7;
text-decoration: none;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
.style12 {color: #FFFFFF}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('menu/forside-over.jpg')">
<table width="817" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="273" height="70" background="Logo.jpg"> </td>
<td width="147" valign="bottom"><div align="left" class="style1"> A new way of reminding </div></td>
<td width="397" valign="bottom"><div align="right"><span class="style1"><a href="index.html" target="_self"><img src="home-ikon.jpg" width="20" height="15" border="0" /></a><span class="style2">-</span><img src="kontakt-ikon.jpg" width="20" height="15" /></span></div></td>
</tr>
</table>
<table width="850" align="left" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td width="1000" height="250" valign="top" background="bjaelke-5.gif"> </td>
</tr>
<tr>
<td height="143" valign="top"><table width="818" border="0" cellpadding="0" cellspacing="2">
<tr>
<td colspan="3"><span class="style11">1</span></td>
</tr>
<tr>
<td width="200" align="left"><div align="left"><img src="menu-logo.jpg" width="200" height="15" align="left" /></div></td>
<td width="8" rowspan="4"> </td>
<td width="610"><img src="menu-logo-2.jpg" width="608" height="15" /></td>
</tr>
<tr>
<td valign="top" bgcolor="#000000"><div align="left">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="190" height="75">
<param name="movie" value="ClearWhiteMenu1225252.swf" />
<param name="quality" value="high" />
<embed src="ClearWhiteMenu1225252.swf" width="190" height="75" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
</div></td>
<td rowspan="8" valign="top" bgcolor="#000000">
<p>
<?php
/* Her tjekkes om SUBMIT knapper er trykket*/
if(isset($_POST['submit']))
{
/* Her tjekkes om felterne er udfyldt*/
if(isset($_POST['navn']) && isset($_POST['email']) && isset($_POST['tekstfelt']))
{
$navn = $_POST['navn'];
$email = preg_replace('/\\r|\\n|\\r\\n/', '', $_POST['email']);
$tekstfelt = $_POST['tekstfelt'];
$emne = 'Email afsendt fra PHP';
$besked = 'Navn: ' . $navn . "\r\n";
$besked .= 'Email: ' . $email . "\r\n";
$besked .= 'Besked: ' . $tekstfelt . "\r\n";
$headers = "From: $email\r\nReply-To: $email\r\nX-Mailer: PHP/" . phpversion();
$til = "$_POST[valg-box]";
mail("$til", $emne, $besked, $headers);
if ( empty ( $til )){
} elseif ( empty ( $_POST['navn'] )){
echo "Alle felter skal udfyldes";
} elseif ( empty ( $_POST['email'] )){
echo "Alle felter skal udfyldes";
} elseif ( empty ( $_POST['tesktfelt'] )){
echo "Alle felter skal udfyldes";
}
else
{
echo "Vi takker for din interesse for .:NOTIFIER";
}
?>
</p>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<p class="style1"><span class="style12">Navn:</span> <br />
<input name="navn" type="text" class="style1" value="" size="35" maxlength="100" style="color:#000000" />
<br />
<br />
<span class="style12">Email:</span> <br />
<input name="email" type="text" class="style1" value="" size="35" maxlength="100" style="color:#000000" />
<br />
<br />
<span class="style12">Besked:</span>
<br />
<textarea name="tekstfelt" cols="32" rows="5" style="color:#000000"></textarea>
<br />
<br />
<input name="submit" type="submit" class="style1" value="Send"/>
</p>
</form>
</tr>
<tr>
<td align="left" valign="bottom"><div align="left"><img src="tilfoej-logo.jpg" width="200" height="15" align="left" /></div></td>
</tr>
<tr>
<td height="30" valign="middle" bgcolor="#000000"><div align="left"><span class="style1">Tlføj NOTIFIERs hjemmeside til foretrukne <a href="java script:window.external.AddFavorite('
http://brian.mmd2007.ots.dk', 'NOTIFIER - A new way of reminding')">Klik her</a></span></div></td>
</tr>
<tr>
<td valign="middle" bgcolor="#000000"><img src="menu-logo-startside.jpg" width="200" height="15" /></td>
<td rowspan="6"> </td>
</tr>
<tr>
<td height="19" valign="middle" bgcolor="#000000" class="style1">Gør NOTIFIERs hjemmeside til din startside <a href=".: N O T I F I E R" onClick="this.style.behavior='url (#default#homepage)';this.setHomePage('
http://brian.mmd2007.ots.dk/');">Klik her</a> </td>
</tr>
<tr>
<td height="20" valign="middle" bgcolor="#000000" class="style1"> </td>
</tr>
</table></td>
</tr>
</table>
<p><br />
</p>
</body>
</html>
<?php
}
}
?>