| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
Momi Mitglied
|
Hilfe |
|
|
Bitte hilft mir meine Kontaktformular.php funktioniert nicht.
meine Php quellencod lautet .
Fehlern: Geburtsdatum js und kein mailempfang und mail an absender.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Anmeldeformular</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<script languange="Javascript">
// ©
function eingaben_ueberpruefen(){
if (document.eingabe.vorname.value == ""){
alert("Sie haben noch keinen Vornamen eingegeben!")
document.eingabe.vorname.focus();
return false;
}
else if (document.eingabe.nachname.value == ""){
alert("Bitte geben Sie Ihren Nachnamen ein")
document.eingabe.nachname.focus();
return false;
}
else if (document.eingabe.geburtsort.value == ""){
alert("Bitte geben Sie Ihren Geburtsort ein")
document.eingabe.geburtsort.focus();
return false;
}
else if (document.eingabe.geburtsdatum.value == ""){
alert("Bitte geben Sie Ihren Geburtsdatum ein")
document.eingabe.geburtsdatum.focus();
return false;
}
else if (document.eingabe.email.value == ""){
alert("Bitte geben Sie eine gültige E-Mail-Adresse ein.")
document.eingabe.email.focus();
return false;
}
else if (document.eingabe.adresse.value == ""){
alert("Bitte geben Sie Adresse ein!")
document.eingabe.adresse.focus();
return false;
}
else if (document.eingabe.plz.value == ""){
alert("Bitte geben Sie Plz ein!")
document.eingabe.plz.focus();
return false;
}
else if (document.eingabe.telefon.value == ""){
alert("Bitte geben Sie Ihre Telefon nummer ein!")
document.eingabe.telefon.focus();
return false;
}
else if (document.eingabe.fax.value == ""){
alert("Bitte geben Sie Fax nummer ein!")
document.eingabe.fax.focus();
return false;
}
else if (document.eingabe.mobiel.value == ""){
alert("Bitte geben Sie Mobiel nummer ein!")
document.eingabe.mobiel.focus();
return false;
}
else if (document.eingabe.paket1.value == ""){
alert("Bitte geben Sie paket eins ein")
document.eingabe.paket1.focus();
return false;
}
else if (document.eingabe.pake2.value == ""){
alert("Bitte geben Sie paket zwei ein")
document.eingabe.paket2.focus();
return false;
}
else if (document.eingabe.pake3.value == ""){
alert("Bitte geben Sie paket drei ein")
document.eingabe.paket3.focus();
return false;
}
else if (document.eingabe.pake4.value == ""){
alert("Bitte geben Sie paket vier ein")
document.eingabe.paket4.focus();
return false;
}
else if (document.eingabe.pake5.value == ""){
alert("Bitte geben Sie paket fünf ein")
document.eingabe.paket5.focus();
return false;
}
else if (document.Formular.bar.value.length < 10){
alert("Bitte geben Sie Zahlungsart ein!")
document.Formular.bar.focus();
return false;
}
else if (document.Formular.bank.value.length < 20){
alert("Bitte geben Sie Zahlungsart ein!")
document.Formular.nachricht.focus();
return false;
}
else if (document.Formular.anderes.value.length < 20){
alert("Bitte geben Sie Zahlungsart ein!")
document.Formular.anderes.focus();
return false;
}
else
return true;
}
</SCRIPT>
<style type="text/css">
body,td,th{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#333333;}
body{background="bg.jpg"}
</style>
</head>
<body bgcolor="#800080" background="bg.jpg" >
<h2 style="text-align: left;"><font color="#00FF00">Anmelden2</font></h2>
<form name="eingabe" method="POST" action="antwort.html" onSubmit="return eingaben_ueberpruefen(this.form)">
<table align="left" cellPadding=1 cellSpacing=1>
<td valign="top"><font color="#FFFFFF"><b>Geschlecht</b></font></td>
<td>
<INPUT type="checkbox" name="herr"><font color="#FFFFFF"><b> Herr </b> <INPUT type="checkbox" name="frau"><b> Frau </b> </font>
</td>
</tr>
<tr>
<td>
<b><font color="#FFFFFF"><b>vorname:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="vorname" maxlength="50" size="30">
</td>
</tr>
<tr>
<td>
<b><font color="#FFFFFF"><b>nachname:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="nachname" maxlength="50" size="30">
</td>
<tr>
<td>
<b><font color="#FFFFFF"><b>Geburtsort:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="geburtsort" maxlength="50" size="30">
</td>
<tr>
<td>
<b><font color="#FFFFFF"><b>Geburtsdatum:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="Geburtsdatum" maxlength="20" size="15">
</td>
<tr>
<td>
<b><font color="#FFFFFF">E-Mail:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="email" maxlength="60" size="30">
</td>
<tr>
<td><font color="#FFFFFF"><b>Straat & Nr:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td><input type="text" name="adress" size=30> </td>
</tr>
<tr>
<td><font color="#FFFFFF"><b>plz & wohnort:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td><input type="text" name="plz" size=6 maxlength="7"> <input type="text" name="wohnort" size=19></td>
</tr>
<tr>
<td valign="top"><font color="#FFFFFF"><b>Telefon:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td> <input type="text" name="telefon" size=30></td>
</tr>
<tr>
<td valign="top"><font color="#FFFFFF"><b>Fax:</b></font></td>
<td> <input type="text" name="fax" size=30></td>
</tr>
<tr>
<td valign="top"><font color="#FFFFFF"><b>Mobiel nummer:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td> <input type="text" name="mobiel" size=30></td>
</tr>
<tr>
<td valign="top"><font color="#FFFF00"><b>Paket wählen:</b></font></td>
<td>
<INPUT type="checkbox" name="einfach"><font color="#FFFFFF"><b>einfach</b></font> <br>
<INPUT type="checkbox" name="losse"><font color="#FFFFFF"><b>Losse paket</b></font><br/>
<INPUT type="checkbox" name="paket5"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>5</b></font><br/>
<INPUT type="checkbox" name="paket10"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>10</b></font><br/>
<INPUT type="checkbox" name="paket15"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>15</b></font><br/>
<INPUT type="checkbox" name="paket25"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>25</b></font><br/>
</td>
</tr>
<tr>
<td width="150"><font color="#FFFF00"><b>Zahlungswege:</font></td>
<td>
<select size="1" name="zahlung" style="width: 280px">
<option value="" selected>Wählen</option>
<option name="sofort">sofort</option>
<option name="perbank"> per bank</option>
<option name="anderes">anderes</option>
</select></td>
</tr>
<tr>
<td style="width:150px"> </td>
<td> </td>
</tr>
<tr>
<td align=center colspan="2">
<input type="reset" value="loeschen" name="reset" />
<input type="submit" value="senden" name="submit" />
</td>
</tr>
</table>
</form>
</body>
</html>
und antwort.html
<html>
<head>
<title>antwort</title>
<style type="text/css">
body, td{
font-family: Verdana, Arial;
font-size: 12px;
}
td{
background="bg.jpg";
}
</style>
</head>
<body background="bg.jpg" >
<table align="center" cellPadding=4 cellSpacing=4><h2 style="text-align: center;"><font size="+2"><font color="#00FF00">Antwort</font></h2><br><br><p>Danke Ihre Nachricht wurde an <font color="#FFFF00">mkn1544@yahoo.de</font> weitergeleitet und wird schnellst möglich beantwortet.<br> </p></font>
<tr>
<td>
</td>
</tr>
</table>
</body>
</html> |
Zuletzt bearbeitet von Momi am 16 Jan 2010 04:31, insgesamt einmal bearbeitet |
|
|
| 15 Jan 2010 20:56 |
|
  |
Momi Mitglied
|
Re: Hilfe |
|
|
| Momi hat Folgendes geschrieben: | Bitte hilft mir meine Kontaktformular.php funktioniert nicht.
meine Php quellencod lautet .
Fehlern: Geburtsdatum js und kein mailempfang und mail an absender.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Anmeldeformular</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<script languange="Javascript">
// ©
function eingaben_ueberpruefen(){
if (document.eingabe.vorname.value == ""){
alert("Sie haben noch keinen Vornamen eingegeben!")
document.eingabe.vorname.focus();
return false;
}
else if (document.eingabe.nachname.value == ""){
alert("Bitte geben Sie Ihren Nachnamen ein")
document.eingabe.nachname.focus();
return false;
}
else if (document.eingabe.geburtsort.value == ""){
alert("Bitte geben Sie Ihren Geburtsort ein")
document.eingabe.geburtsort.focus();
return false;
}
else if (document.eingabe.geburtsdatum.value == ""){
alert("Bitte geben Sie Ihren Geburtsdatum ein")
document.eingabe.geburtsdatum.focus();
return false;
}
else if (document.eingabe.email.value == ""){
alert("Bitte geben Sie eine gültige E-Mail-Adresse ein.")
document.eingabe.email.focus();
return false;
}
else if (document.eingabe.adresse.value == ""){
alert("Bitte geben Sie Adresse ein!")
document.eingabe.adresse.focus();
return false;
}
else if (document.eingabe.plz.value == ""){
alert("Bitte geben Sie Plz ein!")
document.eingabe.plz.focus();
return false;
}
else if (document.eingabe.telefon.value == ""){
alert("Bitte geben Sie Ihre Telefon nummer ein!")
document.eingabe.telefon.focus();
return false;
}
else if (document.eingabe.fax.value == ""){
alert("Bitte geben Sie Fax nummer ein!")
document.eingabe.fax.focus();
return false;
}
else if (document.eingabe.mobiel.value == ""){
alert("Bitte geben Sie Mobiel nummer ein!")
document.eingabe.mobiel.focus();
return false;
}
else if (document.eingabe.paket1.value == ""){
alert("Bitte geben Sie paket eins ein")
document.eingabe.paket1.focus();
return false;
}
else if (document.eingabe.pake2.value == ""){
alert("Bitte geben Sie paket zwei ein")
document.eingabe.paket2.focus();
return false;
}
else if (document.eingabe.pake3.value == ""){
alert("Bitte geben Sie paket drei ein")
document.eingabe.paket3.focus();
return false;
}
else if (document.eingabe.pake4.value == ""){
alert("Bitte geben Sie paket vier ein")
document.eingabe.paket4.focus();
return false;
}
else if (document.eingabe.pake5.value == ""){
alert("Bitte geben Sie paket fünf ein")
document.eingabe.paket5.focus();
return false;
}
else if (document.Formular.bar.value.length < 10){
alert("Bitte geben Sie Zahlungsart ein!")
document.Formular.bar.focus();
return false;
}
else if (document.Formular.bank.value.length < 20){
alert("Bitte geben Sie Zahlungsart ein!")
document.Formular.nachricht.focus();
return false;
}
else if (document.Formular.anderes.value.length < 20){
alert("Bitte geben Sie Zahlungsart ein!")
document.Formular.anderes.focus();
return false;
}
else
return true;
}
</SCRIPT>
<style type="text/css">
body,td,th{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;color:#333333;}
body{background="bg.jpg"}
</style>
</head>
<body bgcolor="#800080" background="bg.jpg" >
<h2 style="text-align: left;"><font color="#00FF00">Anmelden2</font></h2>
<form name="eingabe" method="POST" action="antwort.html" onSubmit="return eingaben_ueberpruefen(this.form)">
<table align="left" cellPadding=1 cellSpacing=1>
<td valign="top"><font color="#FFFFFF"><b>Geschlecht</b></font></td>
<td>
<INPUT type="checkbox" name="herr"><font color="#FFFFFF"><b> Herr </b> <INPUT type="checkbox" name="frau"><b> Frau </b> </font>
</td>
</tr>
<tr>
<td>
<b><font color="#FFFFFF"><b>vorname:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="vorname" maxlength="50" size="30">
</td>
</tr>
<tr>
<td>
<b><font color="#FFFFFF"><b>nachname:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="nachname" maxlength="50" size="30">
</td>
<tr>
<td>
<b><font color="#FFFFFF"><b>Geburtsort:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="geburtsort" maxlength="50" size="30">
</td>
<tr>
<td>
<b><font color="#FFFFFF"><b>Geburtsdatum:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="Geburtsdatum" maxlength="20" size="15">
</td>
<tr>
<td>
<b><font color="#FFFFFF">E-Mail:</b><font color="#FFFF00"><b>*</font></b>
</td>
<td>
<input type="text" name="email" maxlength="60" size="30">
</td>
<tr>
<td><font color="#FFFFFF"><b>Straat & Nr:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td><input type="text" name="adress" size=30> </td>
</tr>
<tr>
<td><font color="#FFFFFF"><b>plz & wohnort:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td><input type="text" name="plz" size=6 maxlength="7"> <input type="text" name="wohnort" size=19></td>
</tr>
<tr>
<td valign="top"><font color="#FFFFFF"><b>Telefon:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td> <input type="text" name="telefon" size=30></td>
</tr>
<tr>
<td valign="top"><font color="#FFFFFF"><b>Fax:</b></font></td>
<td> <input type="text" name="fax" size=30></td>
</tr>
<tr>
<td valign="top"><font color="#FFFFFF"><b>Mobiel nummer:</b></font><font color="#FFFF00"><b>*</font></b></td>
<td> <input type="text" name="mobiel" size=30></td>
</tr>
<tr>
<td valign="top"><font color="#FFFF00"><b>Paket wählen:</b></font></td>
<td>
<INPUT type="checkbox" name="einfach"><font color="#FFFFFF"><b>einfach</b></font> <br>
<INPUT type="checkbox" name="losse"><font color="#FFFFFF"><b>Losse paket</b></font><br/>
<INPUT type="checkbox" name="paket5"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>5</b></font><br/>
<INPUT type="checkbox" name="paket10"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>10</b></font><br/>
<INPUT type="checkbox" name="paket15"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>15</b></font><br/>
<INPUT type="checkbox" name="paket25"><font color="#FFFFFF">Paket <font color="#FFFF00"><b>25</b></font><br/>
</td>
</tr>
<tr>
<td width="150"><font color="#FFFF00"><b>Zahlungswege:</font></td>
<td>
<select size="1" name="zahlung" style="width: 280px">
<option value="" selected>Wählen</option>
<option name="sofort">sofort</option>
<option name="perbank"> per bank</option>
<option name="anderes">anderes</option>
</select></td>
</tr>
<tr>
<td style="width:150px"> </td>
<td> </td>
</tr>
<tr>
<td align=center colspan="2">
<input type="reset" value="loeschen" name="reset" />
<input type="submit" value="senden" name="submit" />
</td>
</tr>
</table>
</form>
</body>
</html>
und antwort.html
<html>
<head>
<title>antwort</title>
<style type="text/css">
body, td{
font-family: Verdana, Arial;
font-size: 12px;
}
td{
background="bg.jpg";
}
</style>
</head>
<body background="bg.jpg" >
<table align="center" cellPadding=4 cellSpacing=4><h2 style="text-align: center;"><font size="+2"><font color="#00FF00">Antwort</font></h2><br><br><p>Danke Ihre Nachricht wurde an <font color="#FFFF00">mkn1544@yahoo.de</font> weitergeleitet und wird schnellst möglich beantwortet.<br> </p></font>
<tr>
<td>
</td>
</tr>
</table>
</body>
</html> |
|
|
|
|
| 16 Jan 2010 04:30 |
|
 |
Forrest Gumb Mitglied

|
 |
|
|
Das muss antwort.php heißen. Dann fehlt auch noch der entsprechende php Code.
<form name="eingabe" method="POST" action="antwort.php" onSubmit="return eingaben_ueberpruefen(this.form)"> |
_________________ 4rest
Wende Dein Gesicht ins Licht, dann werden die Schatten hinter Dir sein.
[ forrest ] - [ more ] |
|
|
| 20 Jan 2010 20:36 |
|
 |
Momi Mitglied
|
Forrest Gumb |
|
|
| danke es funk. nicht. ich bin mir sicher das in script ein fehler liegt das ich nich sehe |
|
|
|
| 20 Jan 2010 20:54 |
|
 |
Forrest Gumb Mitglied

|
 |
|
|
| Kann ja nicht wenn kein php Code vorhanden ist. |
_________________ 4rest
Wende Dein Gesicht ins Licht, dann werden die Schatten hinter Dir sein.
[ forrest ] - [ more ] |
|
|
| 20 Jan 2010 21:02 |
|
 |
Momi Mitglied
|
Forrest Gumb |
|
|
| Forrest Gumb hat Folgendes geschrieben: | | Kann ja nicht wenn kein php Code vorhanden ist. |
habe gerade getestet
und so sieht wenn antwort.php heisset
Not Found
The requested document was not found on this server.
--------------------------------------------------------------------------------
Web Server at rijbewijsjerotjeknor.nl |
|
|
|
| 20 Jan 2010 22:38 |
|
 |
Momi Mitglied
|
Forest gumb |
|
|
das ist meine antwort.php code
<html>
<head>
<title>antwoord</title>
<style type="text/css">
body, td{
font-family: Verdana, Arial;
font-size: 12px;
}
td{
background="bg.jpg";
}
</style>
</head>
<body background="bg.jpg" >
<table align="center" cellPadding=4 cellSpacing=4><h2 style="text-align: center;"><font color="#00FF00">Antwoord</font></h2>
<br><div align=center><img src="logo2.gif" width="314" height="66" border="0" alt=""><br><br><br><img src="autovaltom.gif" width="110" height="64" border="0" alt=""> <br/> <br/>
<tr>
<td>
<?php
$voornaam = @$_POST["voornaam"]; $geboortedatum = @$_POST["geboortedatum"]; $geboorteplaats = @$_POST["geboorteplaats"]; $achternaam = @$_POST["achternaam"]; $email = @$_POST["email"]; $onderwerp = @$_POST["onderwerp"]; $bericht = @$_POST["bericht"];
# Name des Webmasters (Signatur): (Pasha)
$webmaster ="pasha";
# Ihre E-Mail-Adresse: (mkn324@ymail.com)
$an ="info@rijbewijsjerotjeknor.nl";
# Ihre Homepage-Adresse: (http://www.rijbewijsjerotjeknor.nl)
$url ="http://www.rijbewijsjerotjeknor.nl";
# Inhalt der Danke E-Mail:
$inhalt ="Hi $voornaam $achternaam,\nhartelijk bedankt voor uw bezoek bij $url. \n We hebben volgend bericht van u ontvangen:\n\n===== Beginn bericht =====\n$bericht\n===== Ende bericht =====\n\nmet vriendelijk groeten,\n $webmaster\n\nrijbewijsjerotjeknor\n";
# URL zur Startseite: (index/home.htm)
$start ="www.rijbewijsjerotjeknor.nl";
# Nachricht wird an Ihre E-Mailadresse gesendet.
$text ="Pasha,\n u heeft een nieuw bericht van $url van $voornaam $achternaam ontfangen:\n\npasha\n $bericht\n====\n\nu kunt $voornaam $achternaam onder $email bereiken.";
# E-Mails senden.
@mail($an,$onderwerp,$text,"From: ".$email);
@mail($email,"bevestigings",$inhoud,"From: ".$an);
# Ausgabe der Bestätigung.
echo('u bericht werd succesvol aan<br/><br/> info@rijbewijsjerotjeknor.nl<br/><br/> verstuurd !</b>
<p><b>u ontvangt nog een bevestigings email !</b></p><br/><br/><br/>');
?>
</td>
</tr>
</table>
</body>
</html> |
|
|
|
| 20 Jan 2010 22:43 |
|
 |
Forrest Gumb Mitglied

|
 |
|
|
überprüfe den Pfad in -->
<form name="eingabe" method="POST" action="antwort.php" onSubmit="return eingaben_ueberpruefen(this.form)"> |
_________________ 4rest
Wende Dein Gesicht ins Licht, dann werden die Schatten hinter Dir sein.
[ forrest ] - [ more ] |
|
|
| 21 Jan 2010 17:06 |
|
 |
|