<style type="text/css">
<!--
body {
background-color: #FAE65A;
}
body,td,th {
color: #000000;
}
.style1 {color: #000000}
.style2 {color: #FF0000}
-->
</style>
<br><p class="b3">
<? if($action=='send'){
if (($mssg=='')||($subject=='')||($naam=='')){$input='fout';}elseif
(!ereg( "[A-Za-z0-9_-]+([\.]{1}[A-Za-z0-9_-]+)*@[A-Za-z0-9-]+([\.]{1}[A-Za-z0-9-]+)+", $email)) { $emailfout="1"; } else {
if (getenv(HTTP_X_FORWARDED_FOR)){
$ip = getenv(HTTP_X_FORWARDED_FOR); } else {
$ip = getenv(REMOTE_ADDR); }
$mssg=stripslashes($mssg);
$mssg=$mssg.'
URL='.$url.'
IP = '.$ip;
$subject = stripslashes($subject);
$subject="jouw onderwerp: ".$subject;
mail("email@jouwsite.nl", "$subject", "$mssg", "From: $naam<$email>");
$status='send';
?>
Je bericht wordt verzonden. Indien nodig krijg je zo spoedig mogelijk een reactie!
<BR><BR>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<? exit; }} ?>
<? if ($status!=send){ ?>
<br>Zorg ervoor dat alle velden correct zijn invuld!
<br><br>
<? if ($input==fout) { ?>
<span class="style1">Vul aub alle velden in!</span><br>
<Br><? } elseif
($emailfout==1){ ?>
<span class="style1">Vul aub een juist emailadres in, anders kunnen we geen reactie terugsturen!</span><br>
<Br><? } ?>
<form action="file:///C|/Documents and Settings/chalana.INDO-UGOM9KNVD8/Bureaublad/mailformvananouksweb/contact.php" method="post">
<input type="hidden" name="action" value="send">
<table border="0">
<tr>
<td><p class="b3"><b>Email adres</b><span class="style2">*</span></td>
<td><input type="text" size="25" name="email" maxlength="35" value="<? echo $email; ?>"></td>
</tr>
<tr>
<td><p class="b3"><b>Onderwerp</b></td>
<td><input type="text" size="25" name="subject" maxlength="35" value="<? echo $subject; ?>"></td>
</tr>
<tr>
<td><strong>Betreffende Habbotop medewerker </strong></td>
<td><?PHP
if($_POST["dept"] == "Zammora - eigenaar") {
$to = 'zampie@habbotop.com';
} elseif ($_POST["dept"] == "Monchichi - eigenaar") {
$to = 'monchichi@habbotop.com';
} elseif ($_POST["dept"] == "Knijntjuh - Hoofd DJ / nieuws") {
$to = 'knijntjuh@habbotop.com';
} elseif ($_POST["dept"] == "Lovesuusje - Hoofd DJ") {
$to = 'lovesuusje@habbotop.com';
} elseif ($_POST["dept"] == "Divimus - Hoofd DJ") {
$to = 'divimus@habbotop.com';
} elseif ($_POST["dept"] == "DJ-Latin - Hoofd DJ") {
$to = 'dj-latin@habbotop.com';
} elseif ($_POST["dept"] == ".:Stefan-h:. - Hoofd DJ") {
$to = 'stefan-h@habbotop.com';
} elseif ($_POST["dept"] == "Redbolleke - DJ") {
$to = 'redbolleke@habbotop.com';
} elseif ($_POST["dept"] == "Osseworst - DJ") {
$to = 'osseworst@habbotop.com';
} elseif ($_POST["dept"] == "sgatju-xlove - DJ") {
$to = 'sgatju-xlove@habbotop.com';
} elseif ($_POST["dept"] == "marjo111 - DJ") {
$to = 'marjo111@habbotop.com';
} elseif ($_POST["dept"] == "Jori1 - DJ") {
$to = 'jori1@habbotop.com';
} elseif ($_POST["dept"] == "WeeTjeSSS. - DJ") {
$to = 'weetjesss@habbotop.com';
} elseif ($_POST["dept"] == "Knallie - DJ") {
$to = 'knallie@habbotop.com';
} elseif ($_POST["dept"] == "Jager - DJ") {
$to = 'jager@habbotop.com';
} elseif ($_POST["dept"] == "BusZie - DJ") {
$to = 'buszie@habbotop.com';
} elseif ($_POST["dept"] == "Samakala - DJ") {
$to = 'samakala@habbotop.com';
} elseif ($_POST["dept"] == "Royofzo - nieuwsbrief") {
$to = 'royofzo@habbotop.com';
}
// CHECK WHAT $to HAS BEEN SET TO
echo $to;
$subject = "Je hebt een bericht ontvangen vanuit de contactformulier";
$headers = "From: Contactformulier";
$forward = 1;
$location = "contact.php";
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "results of form. $date at $time.\n\n";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location");
}
else {
echo "";
}
?>
</td>
</tr>
<tr>
<td valign="top"><p class="b3"><b>Bericht:</b></td>
<td><textarea rows="10" cols="37" name="mssg"><? echo htmlspecialchars(stripslashes($mssg)); ?></textarea></td>
</tr><tr>
<td colspan="2"><input type="submit" value="Verstuur"></td>
</tr>
</table>
</form>
<? } ?>
<BR>
<span class="style2">* <span class="style1">A.u.b. niet je Habbo e-mail gebruiken! </span></span>
<span class="style1">
</table>
</span>
</body>
</html>