Blodsfana
Threadersteller
Dabei seit: 21.11.2004
Ort: Momentan aus Melsungen
Alter: 38
Geschlecht:
|
Verfasst Do 17.08.2006 11:57
Titel
|
|
|
kontakt.php
Code: | <script>
function check()
{
var email=document.form.email.value, betreff=document.form.subject.value, text=document.form.message.value, nick=document.form.namen.value;
var cemail="",cbetreff="",ctext="", cnick="";
if (email!="")
{
if (document.form.email.value.indexOf('@',0)==-1 || document.form.email.value.indexOf('.',0)==-1)
cemail="Die eingegebene E-Mail Adresse ist nicht korrekt!\n";
}
else
var cemail="Bitte tragen Sie ihre Emailadresse ein.\n";
if (nick=="")
var cnick="Bitte tragen Sie ihren Namen ein.\n\n";
if (betreff=="")
var cbetreff="Bitte tragen Sie einen Betreff für die Email ein.\n";
if (text=="")
var ctext="Bitte tragen Sie eine Nachricht ein.\n";
if (cemail!="" || cbetreff!="" || ctext!="" || cnick!=="")
{
alert(cemail+cbetreff+ctext+cnick)
return false;
}
else
return true;
}
</script><table width="438" cellspacing="0" cellpadding="0" align=center border=0 class=cont>
<tr>
<td width="50%" height="2">
<form name="form" action="?action=frm" method="post" onsubmit="return check()">
<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" class=cont>
<tr>
<td height="17" colspan="4" valign="top"><span class=headl>Schreiben Sie uns Ihre Meinung</span><br>
<img src="grafiken/leerbild.gif" width="10" height="3"><br>
Hier haben Sie die Möglichkeit uns Ihre meinung zu schreiben. Aus gründen der Sicherheit haben wir eine Sicherheitsabfrage eingebaut und werden zudem alle IP Adressen speichern und im Notfall an die jeweiligen Behörden reichen. <br>
<img src="grafiken/leerbild.gif" width="10" height="3"> </td>
</tr>
<tr>
<td width="146" valign="top" height="17"><font size="1">
Name:</font></td>
<td height="17" colspan="3" valign="top">
<input size="41" style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px dotted; FONT-SIZE: 9px; BORDER-LEFT: #666666 1px solid; COLOR: #FFFFFF; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; HEIGHT: 17px; WIDTH: 217px; TEXT-DECORATION: none; background: #333333;" type=text name="namen">
</td>
</tr>
<tr>
<td valign="top" height="17" width="146">
Wohnort:</td>
<td height="17" colspan="3" valign="top">
<input type="text" style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px dotted; FONT-SIZE: 9px; BORDER-LEFT: #666666 1px solid; COLOR: #FFFFFF; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; HEIGHT: 17px; WIDTH: 217px; TEXT-DECORATION: none; background: #333333;" size="41" name="ort" >
</td>
</tr>
<tr>
<td valign="top" height="17" width="146"><font size="1">
Telefonnummer:</font></td>
<td height="17" colspan="3" valign="top">
<input size="41" style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px dotted; FONT-SIZE: 9px; BORDER-LEFT: #666666 1px solid; COLOR: #FFFFFF; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; HEIGHT: 17px; WIDTH: 217px; TEXT-DECORATION: none; background: #333333;" type=text name="telnummer">
</td>
</tr>
<tr>
<td valign="top" height="17" width="146"><font size="1">
E-Post:</font></td>
<td height="17" colspan="3" valign="top">
<input size="41" style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px dotted; FONT-SIZE: 9px; BORDER-LEFT: #666666 1px solid; COLOR: #FFFFFF; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; HEIGHT: 17px; WIDTH: 217px; TEXT-DECORATION: none; background: #333333;" type=text name="email" value="@">
</td>
</tr>
<tr>
<td valign="top" height="17" width="146">
Webseite:</td>
<td height="17" colspan="3" valign="top">
<input size="41" style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px dotted; FONT-SIZE: 9px; BORDER-LEFT: #666666 1px solid; COLOR: #FFFFFF; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; HEIGHT: 17px; WIDTH: 217px; TEXT-DECORATION: none; background: #333333;" type=text name="webseite" value="Http://">
</td>
</tr>
<tr>
<td valign="top" height="2" width="146"><font size="1">
Betreff:</font></td>
<td height="2" colspan="3" valign="top">
<input size="41" style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px dotted; FONT-SIZE: 9px; BORDER-LEFT: #666666 1px solid; COLOR: #FFFFFF; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; HEIGHT: 17px; WIDTH: 217px; TEXT-DECORATION: none; background: #333333;" type=text name="subject">
</td>
</tr>
<tr>
<td valign="top" height="2">Sicherheitscode:</td>
<td width="80" height="2"><img width=80 height=15 src="button.php" border="1" bordercolor="#000000"></td>
<td width="10" valign="top"> </td>
<td width="699" valign="top"><input style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px dotted; FONT-SIZE: 9px; BORDER-LEFT: #666666 1px solid; COLOR: #FFFFFF; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; HEIGHT: 17px; WIDTH: 130px; TEXT-DECORATION: none; background: #333333;" MAXLENGTH=5 SIZE=5 name="userdigit" type="text" value="CODE"></td>
</tr>
<tr>
<td valign="top" height="41" width="146"><font size="1">
Ihre Nachricht:</font></td>
<td height="41" colspan="3" valign="top">
<textarea cols="41" name="message" style="font-family: Verdana; font-size: 7pt; word-spacing: 0; text-align: left; text-indent: 0; border: 1px solid #000000; margin: 0; BORDER-RIGHT: #666666 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #666666 1px dotted; PADDING-LEFT: 2px; SCROLLBAR-FACE-COLOR: #333333; FONT-SIZE: 9px; PADDING-BOTTOM: 2px; SCROLLBAR-HIGHLIGHT-COLOR: #333333; BORDER-LEFT: #666666 1px solid; WIDTH: 217px; SCROLLBAR-SHADOW-COLOR: #333333; SCROLLBAR-3DLIGHT-COLOR: #333333; SCROLLBAR-ARROW-COLOR: #000000; PADDING-TOP: 2px; SCROLLBAR-TRACK-COLOR: #333333; BORDER-BOTTOM: #666666 1px dotted; FONT-STYLE: normal; FONT-FAMILY: Tahoma, Verdana, Arial, sans-serif; SCROLLBAR-DARKSHADOW-COLOR: #333333; TEXT-DECORATION: none; background: #333333; color: #FFFFFF;" rows=6></textarea>
</td>
</tr>
<tr>
<td height="3" colspan=4><img src="leer.gif" width="1" height="1"></td>
</tr>
<tr>
<td valign="top" height="13" width="146"><img src="grafiken/leer.gif" width="149" height="8"></td>
<td height="13" colspan="3" valign="top">
<input type="submit" class="absenden" value="Absenden" style="font-size: 7pt; font-family: Verdana; color: #ffffff; border: 1px solid #666666; background-color: #333333" name="submit">
<img src="grafiken/leer.gif" width="75" height="8">
<input type="reset" class="clear" value="Löschen" style="font-size: 7pt; font-family: Verdana; color: #ffffff; border: 1px solid #666666; background-color: #333333" name="reset">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<!--Ecke oben Rechts-->
</body>
</html>
<?php
?> |
send.php
Code: |
<script>
var tt=0;
anf();
function anf()
{
if (tt!=0)
location.href="?action=kontakt";
tt++;
}
setTimeout("anf()", 3988);
</script>
<?
$header.="From: \"Info\" <info@westside-communications.de>\n";
$header.="MIME-Version: 1.0\n";
$header.="Content-Type: text/plain;\n";
$header.="X-Mailer: PHP/".phpversion();
$an = "\"Alex\" <info@westside-communications.de>";
$subject = "Web Formular von Beysenvorte";
$nachricht1.= "\nName:".$_POST['namen']."\nWohnort:".$_POST['ort']."\nTelefon:".$_POST['telnummer']."\nEMail:".$_POST['email']."\nWebseite:".$_POST['webseite']."\nBetreff:".$_POST['subject']."\nNachricht:".$_POST['message'];
mail($an,$betreff,$nachricht1, $header);
//$nachricht2 = "$message\n\n(Homepage: $webseite)";
//$subject2 = "Danke für die Kontaktaufnahme";
//$danke = "Hallo $namen,\n\nvielen Dank für deine Nachricht!\n\nDu erhälst in Kürze Antwort von mir.\n\n\nViele liebe Grüße,\n\nWebmaster von Beysenvorte\n\n--\n\nDeine Nachricht an mich:\n\n $message $nachricht2";
//$header2.="From: \"Info\" <info@westside-communications.de>\n"; // Angabe der E-Mail Adresse von dir. Diese Adresse wird beim Versender des Kontaktformulares angezeigt.
//$header2.="MIME-Version: 1.0\n";
//$header2.="Content-Type: text/plain;\n";
//$header2.="X-Mailer: PHP/".phpversion();
//$an2 = "\"$namen\" <$email>";
//mail($an2,$subject2,$danke,$header2);
?>
<table cellspacing=0 cellpadding=0 width=438 align=center border=0>
<tbody>
<tr>
<td class=cont><div align="justify">
<p><span class=headl>Ihre Nachricht an uns ist unterwegs</span><br>
<img src="grafiken/leerbild.gif" width="10" height="3"><br>
Unser Team freut sich über Ihre nachricht und wird sich umgehend mit Ihnen in Verbindung setzen. </p>
</div>
<table cellspacing=0 cellpadding=0 width="100%" align=center>
<tbody>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<p> </p> |
frm.php
Code: | <?php
include "audit.php";
if (audit()) {
include "send.php";
}
?> |
audit.php
Code: | <?php
function audit() {
session_start();
$digit = $_SESSION['digit'];
$userdigit = $_POST['userdigit'];
session_destroy();
if (($digit == $userdigit) && ($digit > 1)) {
return true;
} else {
include "error.php";
}
}
?> |
Mehr ist das nicht auser die button aber die kann ich nicht posten. Ist aber für das script auch unwichtig. Eingebaut wird es mit index.php?action=kontakt
|
|