Nanni
Weiß jemand zufällig, ob Formulare abschicken bei kilu.de geht?
Bei mir kommt nie ne Mail an - ohne Fehlermeldung ect - und ich frag mich langsam, ob das am Server liegt.
LG Nanni
Isabel
Zitat: |
Original von Julia93
I.wie funktioniert das bei mir nicht...
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>DeckantragH</title>
</head>
<body>
<form action="http://gestuetwildbach.ge.funpic.de/action_formular.php" method="post">
<div style="text-align: center;"></div>
<table>
<tbody>
<tr>
<th style="text-align: center;">Name:</th>
<td><input name="name" type="text"></td>
</tr>
<tr>
<th>e-Mail:</th>
<td><input name="email" type="text"></td>
</tr>
<tr>
<th>Hof-Name:</th>
<td><input name="Hof-Name" type="text"></td>
</tr>
<tr>
<th>Hof-URL:</th>
<td><input name="Hof-URL" type="text"></td>
</tr>
<tr>
<th>Der Hengst:</th>
<td><input name="der Hengst" type="text"></td>
</tr>
<tr>
<th>Name der Stute:</th>
<td><input name="Name der Stute" type="text"></td>
</tr>
<tr>
<th>Steckbrief URL der Stute:</th>
<td><input name="Steckbrief URL der Stute" type="text"></td>
</tr>
<tr>
<th>Name des Fohlens:</th>
<td><input name="Name des Fohlens" type="text"></td>
</tr>
<tr>
<th>Alter des Fohlens:</th>
<td><input name="Alter des Fohlens" type="text"></td>
</tr>
<tr>
<td style="font-weight: bold; font-family: Times New Roman,Times,serif; text-align: center;"><big><font size="2"><big>Geschlecht
des Fohlens:</big></font></big></td>
<td>
<select name="textid9">
<option>Hengst </option>
<option>Stute </option>
<option>Zufall</option>
</select>
</td>
</tr>
<tr>
<th>Weiß deine Hofbesitzerin bescheid?:</th>
<td><input name="Weiß deine Hofbesitzerin bescheid?" type="text"></td>
</tr>
<tr>
</tr>
<tr>
<th>Informationen gelesen?:</th>
<td><input name="Informationen gelesen" type="text"></td>
</tr>
<tr>
<th><input value="Absenden" type="submit"></th>
<th><input value="Zurücksetzen" type="reset"></th>
</tr>
</tbody>
</table>
</form>
</body>
</html>
|
|
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>action_formular.php</title>
</head>
<body>
<?php $name = $_POST['name'];
$email = $_POST['email'];
$Hof-Name = $_POST['Hof-Name'];
$Hof-URL = $_POST['hof-url'];
$der Hengst = $_POST['der Hengst'];
$Name der Stute = $_POST['Name der Stute'];
$Steckbrief URL der Stute = $_POST['Steckbrief URL der Stute'];
$Name des Fohlens = $_POST['Name des Fohlens'];
$Alter des Fohlens = $_POST['Alter des Fohlens'];
$Geschlecht des Fohlens = $_POST['Geschlecht des Fohlens'];
$Weiß deine Hofbesitzerin bescheid = $_POST['Weiß deine Hofbesitzerin bescheid'];
$Informationen gelesen = $_POST['Informationen gelesen'];
if ( ($name == "") OR ($email == "") OR ($nachricht == "") )
{
echo "Du hast nicht alle Felder ausgefüllt! Gehe <a href='javascript:back()'>zurück</a> und korrigiere dies!";
}
else
{
$text = "Name: $name
E-Mail: $email
Hof-Name: $hof-name
Hof-URL: $hof-url
der Hengst: $der Hengst
Name der Stute: $Name der Stute
Steckbrief URL der Stute: $Steckbrief URL der Stute
Name des Fohlens: $Name des Fohlens
Alter des Fohlens: $Alter des Fohlens
Geschlecht des Fohlens: $Geschlecht des Fohlens
Weiß deine Hofbesitzerin bescheid: $weiß deine Hofbesitzerin bescheid
Informationen gelesen: $Informationen gelesen";
mail("JuliaPundt@gmx.de",$betreff,$text,"From $name <$email>");
echo "Deine e-Mail wurde erfolgreich abgeschickt.";
}
?>
</body>
</html>
|
|
Da kommt immer Parse error: syntax error, unexpected '=' in /usr/export/www/vhosts/funnetwork/hosting/gestuetwildbach/action_formular.p
hp on line 14 |
Soweit ich weiß, solltest du den Variablen ein zusammengeschriebenes Wort zuteilen ohne Leerstelle
Simsi1992
also bei mir klappts soweit einwandfrei ... nur ich bekomm die schriftart/größe i-wie net geändert???
Weil die ganze Hp is klein geschrieben und dann diese dicke fette große schrift xD ka. kommt i.wie behindert xD
vlt. hab ich uahc keine gescheiten codes .... kann mir jemand da weiterhelfne??
-Katha-
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
|
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title></title>
</head>
<body>
<span style="font-family: MS Shell Dlg;"><br>
</span>
<div style="text-align: center;"><span
style="font-family: MS Shell Dlg;"><small>Name:</small> <input
name="Name"></span><br>
<small><span style="font-family: MS Shell Dlg;">E-Mail:</span></small>
<input value="@" name="E-Mail"><br>
<span style="font-family: MS Shell Dlg;"><small>Betreff:</small> <input
name="Betreff:"></span><br>
<small><span style="font-family: MS Shell Dlg;">Nachricht:<br>
<textarea cols="30" rows="5" name="Nachricht"></textarea><br>
<input name="Senden" value="Senden" type="button"><br>
<br>
</span></small><small><span
style="font-family: MS Shell Dlg;"></span></small><br>
<span style="font-family: MS Shell Dlg;"></span></div>
<div style="text-align: center;"><span
style="font-family: MS Shell Dlg;"></span><br>
<span style="font-family: MS Shell Dlg;"></span></div>
</body>
</html> |
|
Wo muss ich hier was einbauen, damit er das Formular an
ts_sw@web.de sendet?
Nanni
im PHP-Teil,
das, was du zeigst, ist der HTML-Teil.
Außerdem fehlt das form_action bei deinem Formular (oder bin ich blind?).
Der HTML-Teil, das was du zeigt, ist nur das was der Besucher sieht, sprich die Tabelle mit den Eingabefeldern.
LG Nanni
+Debbie+
Ich hatte noch nie Probleme damit aber nun kommen keine Mails mehr an, egal welche eMailadresse ich angebe
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
|
<link rel="stylesheet" href="style.css">
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$alter = $_POST['alter'];
$probepferd = $_POST['probepferd'];
$text = $_POST['text'];
if ( ($name == "") OR ($email == "") OR ($alter == "") OR ($probepferd == "") OR ($text == "") )
{
echo "Du hast nicht alle Felder ausgefüllt! Gehe <a href='javascript:back()'>zurück</a> und korrigiere dies!";
}
else
{
$text = "Name: $name
E-Mail: $email
Alter: $alter
Probepferd: $probepferd
Beschreibung: $text";
mail("ascanlobell@hotmail.de",Probeanmeldung,$text,"From $name <$email>");
echo "Deine Probeanmeldung wurde erfolgreich abgeschickt. Warte nun auf eine Antwort.";
}
?> |
|
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
|
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>Impressum</title>
</head>
<body>
<center>
<h1>Probeanmeldung</h1>
<br>
Wenn du die alle Informationen durchgelesen hast<br>
und du dir sicher bist das du genug Zeit hast,<br>
kannst du hier die Probeanmeldung ausfüllen.<br>
<br>
<form action="action_formular1.php" method="post">
<table class="table" style="border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="zeile" width="400"><span style="font-weight: bold;">Allgemeines</span></td>
</tr>
</tbody>
</table>
<table class="titus" style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="200">Dein realer Name<br>
</td>
<td width="200"><input name="name" class="text"></td>
</tr>
<tr>
<td width="200">eMail Adresse<br>
</td>
<td width="200"><input name="email" class="text"></td>
</tr>
<tr>
<td width="200">Alter<br>
</td>
<td width="200"><input name="alter" class="text"></td>
</tr>
<tr>
<td width="200">Gewünschtes Probepferd<br>
</td>
<td width="200"><input name="probepferd" class="text"></td>
</tr>
</tbody>
</table>
<br>
<table class="table" style="border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="zeile" width="400"><span style="font-weight: bold;">Über dich</span></td>
</tr>
</tbody>
</table>
<table class="titus" style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="400">
<input size="62" name="text" value="Schreibe hier eine kleine Bewerbung. Hast du z.B genug Zeit für uns?" class="new"></td>
</tr>
<tr>
<td width="400">
<input value="Absenden" type="submit"><input value="Zurücksetzen" type="reset"></td>
</tr>
</tbody>
</table>
</form>
</center>
</body>
</html>
|
|
+Debbie+
es kommt trotzdem nichts an

Hab es nun schon mit 5 Mailadresse versucht :/
+Debbie+
Nein geht auch nicht

Bin langsam am verzweifeln. Es muss an kilu liegen weil meine alten Formulare von bplaced und funpic alle abgeschickt werden an alle Mailadressen, danke für die Hilfe
Viviana
tolles Tut
Aber ein paar Fragen hab ich noch:
• Wie schaff ich es das die Mail nicht im Spam-ordner landen, wo sie ja gelöschte werden, wenn ich sie nicht immer raushole
• Wie kan ic h jetzt die Textfelder und die Buttons stylen?
****Amy****
kann mir mal wer sagen was hieran falsch ist?
code: |
1:
|
<html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Deckantrag</title></head><body><form action="action_deckantrag.php" method="POST"><table><tr><th>Name:</th><td><input type="text" name="name"></td></tr><tr><th>e-Mail:</th><td><input type="text" name="email"></td></tr><tr><th>Hof Name</th><td><input type="text" name="hof"></td></tr><tr><th>Hof Addy</th><td><input type="text" name="addy"></td></tr> <tr><th>Hengst</th><td><input type="text" name="hengst"></td></tr> <tr><th>Besitzer</th><td><input type="text" name="besitzer"></td></tr> <tr><th>Stute</th><td><input type="text" name="stute"></td></tr> <tr><th>Besitzer</th><td><input type="text" name="bissi"></td></tr> <tr><th>Fohlenname (m und w)</th><td><input type="text" name="fohlen"></td></tr> <tr><th>Sonstiges</th><td><input type="text" name="sonstiges"></td></tr><tr><th><input type="submit" value="Absenden"></th><th><input type="reset" value="Zurücksetzen"></th></tr></table></form></body></html> |
|
und hier?
php: |
1:
|
<?php $name = $_POST['name']; $email = $_POST['email']; $hof = $_POST['hof']; $addy = $_POST['addy']; $hengst = $_POST['hengst']; $besitzer = $_POST['besitzer']; $stute = $_POST['stute']; $besitzer = $_POST['bissi']; $fohlen = $_POST['fohlen']; $sonstiges = $_POST['sonstiges']; if ( ($name == "") OR ($email == "") OR ($hof == "") ) { echo "Du hast nicht alle Felder ausgefüllt! Gehe <a href='javascript:back()'>zurück</a> und korrigiere dies!"; } else { $text = "Name: $nameE-Mail: $emailHof Name: $hofHof Addy: $addyHengst: $hengstBesitzer: $besitzerStute: $stuteBesitzer: $bissiFohlenname (m und w): $fohelnSonstiges: $sonstiges"; mail("pferdezauberer-harlekin@web.de",$betreff,$text,"From $name <$email>"); echo "Danke für deinen Deckantrag.Wir werden ihn so schnell wie möglich bearbeiten."; }?> |
|
****Amy****
bitte ist wichtig
Rainbow.//
hat gleich beim ersten mal funktioniert - klasse tut
Carina
irgendwie leitet der nicht weiter, also wenn ich auf absenden gehe, dann passiert gar nichts
code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
|
<html>
<head>
<title>formular</title>
</head>
<body>
<form action="action_formular.php" method="post"></form>
<table style="" 1px="" solid="">
<tbody>
<tr>
<th style="font-family: Verdana;"><small><small>Name:</small></small></th>
<td style="font-family: Verdana;"><small><small><input
name="Name" type="text"></small></small></td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small>E-mail:</small></small></th>
<td style="font-family: Verdana;"><small><small><input
name="Email" value="@" type="text"></small></small></td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small>Hof:</small></small></th>
<td style="font-family: Verdana;"><small><small><input
name="Hof" type="text"></small></small></td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small>Hof-URL:</small></small></th>
<td style="font-family: Verdana;"><small><small><input
name="Hofurl" value="http://" type="text"></small></small></td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small>Pferd:</small></small></th>
<td style="font-family: Verdana;"><small><small><input
name="Pferd" type="text"></small></small></td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small>Steckbrief:</small></small></th>
<td style="font-family: Verdana;"><small><small><input
name="Steckbrief" value="http://" type="text"></small></small></td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small>Turnier:</small></small></th>
<td width="50%">
<select name="Turnier">
<option name="Springevent">Springevent</option>
<option name="Valentinsturnier">Valentinsturnier</option>
<option name="Drei Tage Tour">Drei Tage Tour</option>
<option name="Frühlingsturnier">Frühlingsturnier</option>
</select>
</td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small>Disziplin:</small></small></th>
<td style="font-family: Verdana;"><small><small><input
name="Disziplin" type="text"></small></small></td>
</tr>
<tr>
<th style="font-family: Verdana;"><small><small><input
value="Absenden" type="submit"></small></small></th>
<th style="font-family: Verdana;"><small><small><input
value="Zurücksetzen" type="reset"></small></small></th>
</tr>
</tbody>
</table>
</body>
</html>
|
|
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
|
<html>
<head>
<title>action_formular</title>
</head>
<body>
<font size="-1"><font face="VERDANA">
<?php $Name = $_POST['Name']; $Email = $_POST['Email']; $Hof = $_POST['Hof']; $Hofurl = $_POST['Hofurl']; $Pferd = $_POST['Pferd']; $Steckbrief = $_POST['Steckbrief']; $Turnier = $_POST['Turnier']; $Disziplin = $_POST['Disziplin']; if ( ($Name == "") OR ($Email == "") OR ($Hof == "") OR ($Hofurl == "") OR ($Pferd == "") OR ($Steckbrief == "") OR ($Turnier == "") OR ($Disziplin == "") ) { echo "Du hast nicht alle Felder ausgefüllt!"; } else { $text = "Name: $Name E-Mail: $Email Hof: $Hof Hofurl: $Hofurl Pferd: $Pferd Steckbrief: $Steckbrief Turnier: $Turnier Disziplin: $Disziplin"; mail("Turniere89@gmx.de",$betreff = Turnieranmeldung,$text,"From $name <$email>"); echo "Deine e-Mail wurde erfolgreich abgeschickt."; } ?></font></font>
</body>
</html>
|
|
Nanni
1. Datei Zeile 160:
<td><input name="shsb" type="namehundefuehrer"></td>
Hast du da vl vergessen den Namen zu ändern, bzw. den Namen an die falsche Stelle geschrieben? Dann wäre das Feld leer und würde somit die Fehlermeldung hervorrufen.
edit: Zeile 245, nochmal dasselbe.
LG Nanni
Nanni
Schon, aber bei Anmeldeformularen ect. kanns ganz nützlich sein, sich mit PHP auszukennen. zB wenn man dann Schulpferde aus der Datenbank abfragen will oder beim automatischen Eintragen.. (;
Nanni
Weil in Zeile 31 zu viele Variablen stehen.
Dort kommen nur Mailadresse, Betreff, die Variable $text und das "From:" rein. Die einzelnen eingegebenen Daten fasst du in $text zusammen.
Denn der 1. Punkt ist die Mailadresse, der hinter dem 1. Beistrich, da kommt der Betreff hin, dahinter der Text und schließlich der Absender. Wenn da mehrere Angaben sind, kann PHP ja nicht wissen, ob die Mailadresse, Betreff oder Text sind. Und dann funktionierts nicht mehr (;
Perpetual
Zitat: |
Original von **Caro**
Ah Mist >.< Ja, bei funpic...
Das heißt für mich, wie mache ich das jetzt am Besten? ^.^ |
Hoster wechseln.
Daina
cool! das funktioniert auch auf oyla ;D