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] Formular wird nicht abgeschickt (https://www.gegen-bilderklau.net/thread.php?threadid=140683)


Geschrieben von Alaska. am 12.09.2008 um 22:05:

  Formular wird nicht abgeschickt

Title sagt alles ^^, es steht dass die eMail erfolgreich gesendet wurde, aber sie kommt nicht an. Ich verzweifle langsam echt schon, wär schön wenn jmd die Lösung hätte smile (vielleicht liegts ja an kilu.de)

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:
<html>
 <head>
   <title>Probeanmeldung</title>
    <link rel="stylesheet" href="style.css" type="text/css">
 </head>
    <body>
     <h1>Probeanmeldung</h1>
Schön dass du dich entschieden hast bei uns einzusteigen, wir freuen uns sehr auf dich :) Bitte melde dich nachdem du die Anmeldung abgeschickt hast sofort im Forum an und warte bis du freigeschaltet wirst. Dafür hast du 2 Tage Zeit, ansonsten wirst du wieder gelöscht.
      <form action="action_panmeldung.php" method="POST">
         <table width="400" cellpadding="2" cellspacing="1" class="tableinborder">
             <tr>
                <td width="200" class="tablea"><b>Name:</b></td>
                <td width="200" class="tableb"><input type="text" name="name"></td>
             </tr>
             <tr>
                <td class="tablea"><b>eMail:</b></td>
                <td class="tableb"><input type="text" name="email"></td>
             </tr>
             <tr>
                <td class="tablea"><b>FaQ's und Regeln gelesen?</b></td>
                <td class="tableb"><input type="text" name="regel"></td>
             </tr>
             <tr>
                <td class="tablea"><b>Schulpferd</b></td>
                <td class="tableb"><select name="schulpferd"><option value="1">Little Wonder</option><option value="2">Mheena</option><option value="3">Nikita</option><option value="4">Danny</option><option value="5">Delilah</option><option value="6">Casanova</option><option value="7">Monty</option><option value="8">Golden Star</option></select></td>
             </tr>
             <tr>
                <td class="tablea"><b>Wer bist du?</b></td>
                <td class="tableb"><textarea rows=8 cols=25 name="bewerbung">Stell dich doch bitte vor damit wir wissen wer zu uns stößt :)</textarea></td>
             </tr>
             <tr>
                <td class="tablea"><input type="submit" value="Absenden"></td>
                <td class="tableb"><input type="reset" value="Zurücksetzen"></td>
             </tr>
         </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:
<?php 
$betreff "Probeanmeldung"$name $_POST['name']; 
$email $_POST['email']; 
$regel $_POST['regel']; 
$schulpferd $_POST['schulpferd']; 
$bewerbung $_POST['bewerbung']; 

if ( ($name == "") OR ($email == "") OR ($regel == "") OR ($schulpferd == "") OR ($bewerbung == "") ) 
{ 
     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 
Regel gelesen: $regel 
Schulpferd: $schulpferd 
Bewerbung: $bewerbung"; 

     if (mail("julia.miksics@gmx.at",$betreff,$text,"From $name <$email>")) 
     {  
         echo "Deine e-Mail wurde erfolgreich abgeschickt."; 
     } else 
     {  
          echo "Der mail()-Befehl hat ein Problem!"; 
     }  
} 
?>  



Geschrieben von Alaska. am 12.09.2008 um 22:29:

 

habs schon, lag wirklich an kilu, aber danke Epona großes Grinsen


Forensoftware: Burning Board, entwickelt von WoltLab GmbH