Gegen Bilderklau - Das Original (https://www.gegen-bilderklau.net/index.php)
- Design, Website, Copyright (https://www.gegen-bilderklau.net/board.php?boardid=80)
--- Homepagehilfe (https://www.gegen-bilderklau.net/board.php?boardid=27)
---- Homepagehilfe - Archiv (https://www.gegen-bilderklau.net/board.php?boardid=139)
----- [PHP & MySQL] Kontaktformular - Fehler (https://www.gegen-bilderklau.net/thread.php?threadid=164010)


Geschrieben von *Emma am 29.10.2009 um 19:25:

  Kontaktformular - Fehler

Hey ho
Wenn ich bei meinen Kontaktformular ne Nachricht abschicke, kommt sie nicht an und ich hab keine Ahnung wo der Fehler liegen könnte.

Hier der Code vom action_formular.php:

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:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Kontakt</title>
</head>
<body bgcolor="#E3D9BC">

<?php // Mit diesen Codes "holt" man sich jetzt die Angaben, die im Formular gemacht wurden:
$name = ($_POST['name']);
$email = ($_POST['email']);
$betreff = ($_POST['betreff']);
$nachricht = ($_POST['nachricht']);
// Um zu überprüfen, ob auch wirklich alle Angaben gemacht wurden, folgt jetzt eine if-Abfrage:
if ( ($name == "") OR ($email == "") OR ($betreff == "") OR ($nachricht == "") )
{
echo "<font size='12' face='Verdana' color='#2D231E'>Du hast nicht alle Angaben gemacht! Gehe zurück und korrigiere dies!</font>";
}
// Das heißt: wenn (if) eine der Angaben nicht gemacht werden, erscheint der Text vom echo()-Befehl. Ansonsten (else) wird die e-Mail verschickt:
else
{
mail("gestuet.waldenstein@web.de",$betreff,$nachricht,"From: $name <$email>");
echo "<font size='12' face='Verdana' color='#2D231E'><center><img alt='Danke' src='http://i31.tinypic.com/2z3x4x4.png'></center></font>";
}
?>
</body>
</html>


und noch der Code der normalen Textseite:

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:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Kontakt</title>
  <link href="style.css" rel="stylesheet">
</head>
<body
 style="background-color: rgb(227, 217, 188); color: rgb(0, 0, 0);"
 alink="#ee0000" link="#0000ee" vlink="#551a8b">
<div style="text-align: center; font-family: Verdana;">
<small style="font-family: Verdana; font-weight: bold;">Kontakt</small><br>
<small><small>Hast du Fragen an uns? Verstehst du etwas bei
den FaQ nicht oder du
willst wissen, ob noch Pl&auml;tze frei sind?<br>
Hier kannst du uns gerne schreiben, wir antworten 100%ig!<br>
</small></small><br>
<br>
<center>
<form action="action_formular.php" method="post">
  <table
 style="color: rgb(45, 35, 30); width: 200px; text-align: left; margin-left: auto; margin-right: auto;"
 border="0" cellpadding="0" cellspacing="2">
    <tbody>
      <tr>
        <th style="background-color: rgb(91, 69, 55);"><small><small>Name</small></small></th>
        <td
 style="background-color: rgb(167, 148, 111); text-align: center;"><input
 name="name" type="text"></td>
      </tr>
      <tr>
        <th style="background-color: rgb(91, 69, 55);"><small><small>E-Mail</small></small></th>
        <td
 style="background-color: rgb(167, 148, 111); text-align: center;"><input
 name="email" type="text"></td>
      </tr>
      <tr>
        <th style="background-color: rgb(91, 69, 55);"><small><small>Betreff</small></small></th>
        <td
 style="background-color: rgb(167, 148, 111); text-align: center;"><input
 name="betreff" type="text"></td>
      </tr>
      <tr>
        <th style="background-color: rgb(91, 69, 55);"><small><small>Nachricht</small></small></th>
        <td
 style="background-color: rgb(167, 148, 111); text-align: center;"><center><textarea
 name="nachricht"></textarea></center></td>
      </tr>
      <tr>
        <th><input type="image" src="Bubble_S6.png" type="submit"></th>
        <th><input type="image" src="Bubble_S7.png" type="reset"></th>
      </tr>
    </tbody>
  </table>
</form>
</center>
</div>
</body>
</html>


hier ist die Kontakt-Seite.

lg



Geschrieben von Black Katrin am 29.10.2009 um 19:51:

 

vroni hat dir den fehler gesagt, kilu hat mail() dekativiert



Geschrieben von *Emma am 29.10.2009 um 19:54:

 

und wie kann ich das aktivieren?



Geschrieben von *Emma am 29.10.2009 um 22:20:

 

mist ... kann ich da kilu nich anschreiben oder so?



Geschrieben von Black Katrin am 30.10.2009 um 06:36:

 

bringt nix, es ist ein schutz gegen spam... mail() ist ne sehr heikle funktion



Geschrieben von *Emma am 30.10.2009 um 14:50:

 

ok, trotzdem danke smile


Forensoftware: Burning Board, entwickelt von WoltLab GmbH