Sie sind Gast! Login
Erstellen Sie ein neues Beispiel und publizieren Sie es gratis auf weedit.
Zu diesem Thema gibt es bereits 2 Antworten
Wonach suchen Sie? Suchen
Hier können Sie die Markierungen entfernen.
Verfasst am 28.02.10 um 15:55 Uhr von blitzradio
<html>
<head>
<title>Kontaktformular</title>
</head>
<body style="background:#0000FF;color:#000000;font-size:12;font-family:arial;">
<?php
$v0 = $_POST ["0"];$v1 = $_POST ["1"];$v2 = $_POST ["2"];$v3 = $_POST ["3"];$v4 = $_POST ["4"];$v5 = $_POST ["5"];$v6 = $_POST ["6"];$v7 = $_POST ["7"];$v8 = $_POST ["8"];$v9 = $_POST ["9"];$v10 = $_POST ["10"];$v11 = $_POST ["11"];$v12 = $_POST ["12"];$v13 = $_POST ["13"];$v14 = $_POST ["14"];$v15 = $_POST ["15"];$v16 = $_POST ["16"];$v17 = $_POST ["17"];
$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." Strasse: ".$v1." Wohnort: ".$v2." usw. Mit freundlichen Grüßen";
$mail="dgisella@hotmail.de";
$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>Kontakt mit Uns</h1> </td></tr><tr> <td>Name:</td><td><input style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="0" type="text"></td> </tr><tr> <td>Nachname:</td><td><input style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="1" type="text"></td> </tr><tr> <td>Alter (mind. 14 Jahre):</td><td><input style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="2" type="text"></td> </tr><tr> <td>E-Mail Adresse:</td><td><input style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="3" type="text"></td> </tr><tr> <td>Hast du bereits Erfahrung mit Radio?:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="4" id="4"><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td> </tr><tr> <td>Wie bewertest du dein Können?:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="5" id="5"><option value="1-Sehr gut">1-Sehr gut</option><option value="2-Gut">2-Gut</option><option value="3-Befriedigend">3-Befriedigend</option><option value="4-Ausreichend">4-Ausreichend</option><option value="5-Mangelhaft">5-Mangelhaft</option><option value="6-Unausreichend">6-Unausreichend</option></select></td> </tr><tr> <td>Festplatten Speicherplatz:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="6" id="6"><option value="20 -100GB">20 -100GB</option><option value="100 -500GB">100 -500GB</option><option value="500GB - 1TB">500GB - 1TB</option><option value="mehr als 1TB">mehr als 1TB</option></select></td> </tr><tr> <td>Bist du schon bei einem Radio gewesen?Wenn ja bei welchem?:</td><td><input style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="7" type="text"></td> </tr><tr> <td>Bist du dort noch tätig?:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="8" id="8"><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td> </tr><tr> <td>Wenn ja, hast du vor zu kündigen?:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="9" id="9"><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td> </tr><tr> <td>Musikstil:</td><td><input style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="10" type="text"></td> </tr><tr> <td>Benutzt du legale MP3's:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="11" id="11"><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td> </tr><tr> <td>Wenn ja wieviele?:</td><td><input style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="12" type="text"></td> </tr><tr> <td>Kennst du SAM Broadcaster:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="13" id="13"><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td> </tr><tr> <td>Bist du lernfähig?:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="14" id="14"><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td> </tr><tr> <td>Bist du teamfähig?:</td><td><select style="font-family: arial; font-size: 12px; height: 20px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgb(0, 0, 0);" name="15" id="15"><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td> </tr><tr> <td>Deine Nachricht an uns:</td><td><textarea name="16" style="font-family: arial; font-size: 12px; height: 60px; width: 200px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid 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,"Kontaktformular - Blitzradio",$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>
Verfasst am 28.02.10 um 23:45 Uhr von wolfi
Verfasst am 31.05.10 um 20:49 Uhr von missy09
Sie müssen sich erst einloggen oder registrieren um auf diesen Beitrag zu antworten.
Thema
Information
Autor: blitzradio
Kategorie: Grafiken & Tools
Titel: Kontaktformular - Es ist ein Fehler aufgetreten
Veröffentlicht am: 28.02.10