<html>
<head>
<title>Kontaktformular</title>
</head>
<body style="background:#;color:#;font-size:;font-family:;">
<?php
$v0 = $_POST ["0"];$v1 = $_POST ["1"];$v2 = $_POST ["2"];$v3 = $_POST ["3"];$v4 = $_POST ["4"];$v5 = $_POST ["5"];$v6 = $_POST ["6"];
$datum = date("d.m.Y");
$uhrzeit = date("H:i");
$mitteilung="Hallo, am $datum wurde eine Nachricht über Ihr Kontaktformular an Sie versendet. Inhalt: Name: ".$v0." Nachname: ".$v1." Telefon: ".$v2." E-Mail: ".$v3." Betreff: ".$v4." Mitteilung: ".$v5." Mit freundlichen Grüßen";
$mail="[email protected]";
$send=$_POST['s'];
function random($name_laenge) {
$zeichen = "abcedfhiklmnorstuvwxzABCDEFGHIJKLMNOPRTSUVWXYZ0123456789";
$name_neu = "";
mt_srand ((double) microtime() * 1000000);
for ($i = 0; $i < $name_laenge; $i++ ) {
$name_neu .= $zeichen{mt_rand (0,strlen($zeichen))};
}
return $name_neu;
}
$zufall = random(4);
$zufall2 = $zufall;
$code = $zufall2;
if(($send!="1"))
{
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<table id="tableOne" border="0" cellpadding="0" cellspacing="5"><tbody><tr><td colspan="2"> <h1>Dein Formular</h1> </td></tr><tr> <td>Name:</td><td><input style="border: 1px solid rgb(0, 0, 0); font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" name="0" type="text"></td> </tr><tr> <td>Nachname:</td><td><input style="border: 1px solid rgb(0, 0, 0); font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" name="1" type="text"></td> </tr><tr> <td>Telefon:</td><td><input style="border: 1px solid rgb(0, 0, 0); font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" name="2" type="text"></td> </tr><tr> <td>E-Mail:</td><td><input style="border: 1px solid rgb(0, 0, 0); font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" name="3" type="text"></td> </tr><tr> <td>Betreff:</td><td><select style="border: 1px solid rgb(0, 0, 0); font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" name="4" id="4"><option value="Zahlung">Zahlung</option><option value="Anfrage iPhone">Anfrage iPhone</option><option value="Anfrage iPod">Anfrage iPod</option><option value="Anfrage Sonstiges">Anfrage Sonstiges</option><option value="Sonstiges">Sonstiges</option></select></td> </tr><tr> <td>Mitteilung:</td><td><textarea name="5" style="border: 1px solid rgb(0, 0, 0); font-family: arial; font-size: 12px; height: 60px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);" cols="20" rows="5"></textarea></td> </tr><tr> </tr></tbody></table>
<table cellpadding='0' cellspacing='5' border='0'>
<tr>
<td valign='top'>Sicherheitscheck:</td>
<td>
<span style='background:#F4F4F4;border:1px dashed #333;padding:5px 10px;color:#333;'><?php echo "$code" ?></span>
<input type='text' name='captcha'>
<input type='hidden' name='captchaCheck' value='<?php echo "$code" ?>'>
<br />(Übertragen Sie den Code in das Feld)
</td>
</tr>
</table><table id="tableThree" border="0" cellpadding="0" cellspacing="5"><tbody><tr><td colspan="2"><p><button type="submit">Absenden</button></p></td></tr></tbody></table>
<p><input type="hidden" value="1" name="s" /></p>
</form>
<?php
} else {
$captcha = $_POST["captcha"];
$captchaCheck = $_POST["captchaCheck"];
if($captcha==""||$captcha!=$captchaCheck) {
echo "<script type='text/javascript'>
alert('Bitte beantworten Sie die Sicherheitsabfrage korrekt!');
history.back(1);
</script>";
exit;
}
$send=0;
if(mail($mail,"",$mitteilung,"from:weedit | Kontakt Formular Generator"))
{
echo "<p><strong>Ihre E-Mail wurde abgesendet.</strong></p>";
echo "<p><a href=".$_SERVER['PHP_SELF'].">Zurück zum Formular</a></p>";
}else{
echo "<p><strong>Es ist ein Fehler aufgetreten!</strong></p>";
echo "<p><a href=".$_SERVER['PHP_SELF'].">Zurück zum Formular</a></p>";
}
}
?>
<!-- Dieser Link darf nicht entfernt werden. Es wäre sonst eine Copyright Verletzung -->
<p style='text-align:right;'><a href='http://www.weedit.de/'>Kontaktformular Generator</a></p>
</body>
</html>