<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<?php
$allowTags = false; // set to true if you want to allow people to post code
function isEmail($email) {
return preg_match("/^(((([^]<>()[\.,;:@\" ]|(\\\[\\x00-\\x7F]))\\.?)+)|(\"((\\\[\\x00-\\x7F])|[^\\x0D\\x0A\"\\\])+\"))@((([[:alpha:]]([[:alnum:]]|-)*[[:alnum:]])\\.?)+|(#[[:digit:]]+)|(\\[([[:digit:]]{1,3}(\\.[[:digit:]]{1,3}){3})]))$/", $email);
}
function stripData($data) {
global $allowTags;
if ($allowTags) {
return stripslashes($data);
}
else {
return strip_tags(stripslashes($data));
}
}
function htmlChars($data) {
return htmlspecialchars(stripData($data), ENT_QUOTES);
}
unset($error);
unset($mailed);
if (isset($_POST['nyhedsbrev'])) {
if (empty($_POST['name']) || empty($_POST['email'])) {
$error = "Udfyld alle felter";
}
if (!$error) {
if (!isEmail(stripslashes($_POST['email']))) {
$error = "Ikke gyldig email";
}
}
if (!$error) {
mail("henrik@gdo.dk", "Ny try ansøgning", "From: \"" . stripData($_POST['name']) . "\" <" . stripslashes($_POST['email']) . ">");
$mailed = "Your information has been mailed. Thank you.";
}
}
?>
<title>
www.computer4sale.dk</title></head>
<body>
<center>
<!-- Start Hovedtabel -->
<table cellspacing="0" cellpadding="0" width="780" height="580">
<tr>
<td width="780" valign="top">
<!-- Start tabel top -->
<table cellspacing="0" cellpadding="0" width="780" height="130">
<tr>
<td width="780" height="130" background="top.jpg">
<center> </center>
</td>
</tr>
</table>
<!-- Slut tabel top -->
<!-- Start tabel hoved 1 -->
<table cellspacing="0" cellpadding="0" width="780" height="400">
<tr>
<td valign="top" width="780" background="bag.jpg">
<!-- Start tabel menu m.m. -->
<table cellspacing="0" cellpadding="0" width="780" height="400">
<tr>
<td width="200" valign="top">
<table cellspacing="2" width="200">
<tr>
<td valign="top">
<br>
<!-- Start tilmeld -->
<table borderColor="black" cellPadding="0" cellSpacing="0" border="1" width="185" align="center">
<tr align="center">
<td align="center" bgcolor="#ffffda">
<b>Tilmeld Nyhedsbrev</b>
</td>
</tr>
<tr align="center">
<td height="125" background="comp1.jpg">
<br>
<?php echo $mailed; ?>
<?php
if ($error || !isset($_POST['nyhedsbrev'])) { ?>
<?php echo $error; ?>
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input name="name" type="text" size="16" maxlength="100" value="Indtast fulde navn<?php echo htmlChars($_POST['name']) ?>">
<input name="email" type="text" size="16" maxlength="100" value="Indtast din email<?php echo htmlspecialchars(stripslashes($_POST['email'])) ?>">
<input type="Submit" name="nyhedsbrev" value="Submit">
</form>
<?php
}
?></center>
</td>
</tr>
</table>
<!-- Slut tilmeld -->
<br>
<!-- Start Anbefal -->
<table borderColor="black" cellPadding="0" cellSpacing="0" border="1" width="185" align="center">
<tr align="center">
<td align="center" bgcolor="#ffffda">
<b>Anbefal os til en ven</b>
</td>
</tr>
<tr align="center">
<td height="125" background="comp.jpg">
<br><?php echo $mailed; ?>
<?php
if ($error || !isset($_POST['anbefal'])) { ?>
<?php echo $error; ?>
<form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input name="name1" type="text" size="16" maxlength="100" value="Indtast dit navn<?php echo htmlChars($_POST['name']) ?>">
<input name="email1" type="text" size="16" maxlength="100" value="Indtast vens email<?php echo htmlspecialchars(stripslashes($_POST['email'])) ?>">
<input type="Submit" name="nyhedsbrev" value="Submit">
</form>
<?php
}
?></center>
</td>
</tr>
</table>
<!-- Slut Anbefal -->
</td>
</tr>
</table>
</td>
<td width="400" valign="middle" background="bag2.gif"><center>
<!-- start midtertekst -->
<table cellspacing="0" cellpadding="0" align="center" border="1" bordercolor="black">
<tr valign="top" align="center">
<A HREF="link_celle.html"><TD width="190" height="145" class="imageOne" onMouseOver="this.className='imageTwo'" onMouseOut="this.className='imageOne'" STYLE="cursor:hand;">
<br>Computer 1</TD></A>
<A HREF="link_celle.html"><TD width="190" height="145" class="imageOne" onMouseOver="this.className='imageTwo'" onMouseOut="this.className='imageOne'" STYLE="cursor:hand;">
<br>Computer 2</TD></A>
</tr>
<tr valign="top" align="center">
<A HREF="link_celle.html"><TD width="190" height="145" class="imageOne" onMouseOver="this.className='imageTwo'" onMouseOut="this.className='imageOne'" STYLE="cursor:hand;">
<br>Computer 3</TD></A>
<A HREF="link_celle.html"><TD width="190" height="145" class="imageOne" onMouseOver="this.className='imageTwo'" onMouseOut="this.className='imageOne'" STYLE="cursor:hand;">
<br>Computer 4</TD></A>
</tr>
</TABLE>
<table cellspacing="2" cellpadding="2" align="center">
<tr valign="bottom" align="center">
<td width="400">
<img src="reklame2.jpg" alt="" border="0" height="50" width="380">
</td>
</tr>
</table>
<!-- Slut midtertekst -->
</center>
</td>
<td width="180" valign="top">
<center>
<br><img src="reklame1.jpg" alt="" border="0" height="145" width="160">
<br>
<br><img src="reklame1.jpg" alt="" border="0" height="145" width="160"></center>
</td>
</tr>
</table>
<!-- Slut tabel menu m.m -->
<!-- Start tabel bund -->
<table cellspacing="0" cellpadding="0" width="780" height="50">
<tr>
<td width="780" height="50" background="bund.jpg">
</td>
</tr>
</table>
<!-- Slut tabel bund -->
</td>
</tr>
</table>
<!-- slut tabel hoved 1 -->
</td>
</tr>
</table>
<!-- Slut Hovedtabel -->
</center>
</body>
</html>