Wil je ons wat wijs maken of iets anders, dan kan je het via deze contact formulier kwijt!<br>
Je moet alleen het bericht en de goede gegevens in te vullen! Je krijgt dan binnen 3 dagen mail terug!
<?php
function sendMail($to, $subject, $mailContent)
{
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: $to \r\n";
$headers .= "From: HabboWarning.nl <[email protected]>\r\n";
mail($to, $subject, $mailContent, $headers);
}
// Deze dingen hier onder moet je invullen:
$title = "habbowarning.nl"; // Je site naam!
$emailadres = "[email protected]"; // Vul hier je email in.
$copyright = "nee"; // Wil je copyright op de site? ja of nee ?
?>
<html>
<head>
<title>Contact formulier - <?php echo "".$title.""; ?></title>
</head>
<body>
<?php
if ($_POST['verzend'] != "Verzenden" || !$_POST["naam"] || !$_POST["email"] || !$_POST["onderwerp"] || !$_POST["bericht"]) {
?>
<!-- Copyright habbo-veel => http://habtips.nl/ -->
<font face="Verdana" size="1">
<form method="post" action="<? echo $_SERVER['PHP_SELF']; ?>">
<?php
if ($_POST['verzend'] && !$naam) {
echo "<font color=\"red\">Je hebt één of meerdere velden niet correct ingevult! <a href=\"javascript:history.go(-1)\">Ga terug</a></font><br>";
}
?>
Naam: <input type="text" name="naam" value="<?php echo "$naam"; ?>"><br>
E-mail: <input type="text" name="email" value="<?php echo $email ?>"><br>
Onderwerp: <select name="onderwerp">
<option value="Vraag over <?php echo "$title"; ?>">Vraag over <?php echo "$title"; ?></option>
<option value="Klacht">Klacht</option>
<option value="Overige">Overige</option>
</select><br>
Bericht: <textarea input cols="30" rows="4" name="bericht"><?php echo $bericht ?></textarea><br>
<input type="submit" value="Verzenden" name="verzend"> <input type="reset" value="Wissen" name="wissen">
<?php
} else {
$naam = $_POST["naam"];
$bericht = $_POST["bericht"];
$onderwerp = $_POST["onderwerp"];
$email = $_POST["email"];
$boodschap = "De bezoeker $naam verstuurde dit via uw website:\n\nNaam: ".$naam."\nEmail: ".$email."\nOnderwerp: ".$onderwerp."\nBericht: ".$bericht;
sendMail($emailadres, "Mail van $naam", $boodschap);
$boodschap1 = '<html>
<head>
<title>Email</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<center><br><br><br><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="335" height="92" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="3">
<img src="http://rtlhabbo.habbo-elements.nl/test/images/index_01.png" width="8" height="32" alt=""></td>
<td>
<img src="http://rtlhabbo.habbo-elements.nl/test/images/index_02.png" width="318" height="9" alt=""></td>
<td rowspan="3">
<img src="http://rtlhabbo.habbo-elements.nl/test/images/index_03.png" width="9" height="32" alt=""></td>
</tr>
<tr>
<td width="318" height="12" bgcolor="#70af21"><font size="1"><font face="Verdana" size="1">Teksdt!</td>
</tr>
<tr>
<td>
<img src="http://rtlhabbo.habbo-elements.nl/test/images/index_05.png" width="318" height="11" alt=""></td>
</tr>
<tr>
<td background="http://rtlhabbo.habbo-elements.nl/test/images/index_06.png" width="8" height="49" alt=""></td>
<td width="318" height="49"><font face="Verdana" size="1">Tekstie!<br><br><br>Heeey<br><Br>BoeBoe!<br>Wazaa!</td>
<td background="http://rtlhabbo.habbo-elements.nl/test/images/index_08.png" width="9" height="49" alt=""></td>
</tr>
<tr>
<td>
<img src="http://rtlhabbo.habbo-elements.nl/test/images/index_09.png" width="8" height="11" alt=""></td>
<td>
<img src="http://rtlhabbo.habbo-elements.nl/test/images/index_10.png" width="318" height="11" alt=""></td>
<td>
<img src="http://rtlhabbo.habbo-elements.nl/test/images/index_11.png" width="9" height="11" alt=""></td>
</tr>
</table>
</body>
</html>';
sendMail($email, "Uw reactie", $boodschap1);
echo "<center>Bedankt ".$naam.", Uw email is met succes aangekomen!</center><br><br>";
}
?>
<?php
if ($copyright == ja) {
echo "<center><font face=\"Verdana\" size=\"1\">Copyright ".$title." © Alle rechten voorbehouden! 2007 - 2008!</center>";
}
?>Maar nu heb ik een probleem..
Ik wil dat hij een layoutje in de mail weergeeft.. Helaas werkt dat nu niet, want hij weergeeft de plaatjes niet..
Ook stuurt hij 4 mails in plaats van 2 (2 voor de Verzender en 2 voor de ontvanger) Weet iemand hoe ik dit verhelp?