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] Anmeldeformular schickt keine Angaben (https://www.gegen-bilderklau.net/thread.php?threadid=160759)


Geschrieben von Anna am 19.08.2009 um 14:15:

  Anmeldeformular schickt keine Angaben

Hallöchen fröhlich

Also meine 3 Formulare auf La Pasion schicken keine Angaben an die E-Mail Adresse, aber es kommen auch keine Fehlermeldungen...

Könnt ihr mir helfen?
lG



Geschrieben von cll am 19.08.2009 um 16:24:

 

und probier mal aus vor dem Absenden die Zieladresse und den Text am Bildschirm ausgeben zu lassen!



Geschrieben von Anna am 19.08.2009 um 16:35:

 

Upss die Codes....Das werden dann aber echte viele Codes xD

PHP Code vom Kontakt-Formular
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
<?php
  $name $_POST['name'];
  $email $_POST['email'];
  $betreff $_POST['betreff'];
  $homepage $_POST['homepage'];
  $nachricht $_POST['nachricht'];
  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
Homepage: $homepage
Nachricht: $nachricht";
    mail("Privatstall.LaPasion@gmx.net",$betreff,$text,"From $name <$email>");
    echo "Deine e-Mail wurde erfolgreich abgeschickt.";
  }
?> 


HTML Code dazu:
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:
<html>
<head>


  
  <title>Kontakt</title>
</head>


<body style="width: 625px;">

<div align="center">
<form action="action_formular.php" method="post">
  <big><span style="color: rgb(64, 86, 39);">Kontakt</span></big><br style="color: rgb(64, 86, 39);">
  <br style="color: rgb(64, 86, 39);">
  <span style="color: rgb(64, 86, 39);">Hier k&ouml;nnt ihr uns kontaktieren. Wir freuen uns immer &uuml;ber Lob, Kritik und anderes =)</span><br>
  <table>

    <tbody>

      <tr>

        <th style="color: rgb(64, 86, 39);">Name:</th>

        <td><input name="name" type="text"></td>

      </tr>


      <tr>

        <th style="color: rgb(64, 86, 39);">e-Mail:</th>

        <td><input name="email" type="text"></td>

      </tr>


      <tr>

        <th style="color: rgb(64, 86, 39);">Betreff:</th>

        <td><input name="betreff" type="text"></td>

      </tr>


      <tr>

        <th style="color: rgb(64, 86, 39);">Homepage:</th>

        <td><input name="homepage" type="text"></td>

      </tr>


      <tr>

        <th style="color: rgb(64, 86, 39);">Nachricht:</th>

        <td><textarea name="nachricht"></textarea></td>

      </tr>


      <tr>

        <th><input value="Absenden" type="submit"></th>

        <th><input value="Zur&uuml;cksetzen" type="reset"></th>

      </tr>

    
    </tbody>
  
  </table>

</form>


</div>


</body>
</html>


Ich geb euch erstmal den Code ja?
lG



Geschrieben von cll am 19.08.2009 um 16:44:

 

$mail = mail("Privatstall.LaPasion@gmx.net",$betreff,$text,"From $name <$email>");
if($mail == true){ echo "Deine e-Mail wurde erfolgreich abgeschickt."; }


Forensoftware: Burning Board, entwickelt von WoltLab GmbH