HILFE bei Kotaktformular

  • Hallo Leute,
    Ich bin neu hier und habe auch schon direkt eine Frage.
    Ich habe versucht mir ein Kontaktformular zu skripten mit HTML und PHP. Ich bekomme die variablen und alles sauber ausgewiesen auf der PHP seite, jedoch bekomme ich kein mail in mein Posteingang, was mache ich falsch????

    HTML FILE:

    <!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>


    <body style="font-family:arial">
    <form action="auswertung.php" method="GET" name="form1">
    <table width="480" border="0">
    <tr>
    <td width="67">Anrede</td>
    <td width="157"><label style="float:right;">
    <select name="anrede" id="anrede">
    <option value="frau">Frau</option>
    <option value="herr">Herr</option>
    </select>
    </label></td>
    </tr>
    <tr>
    <td>Name</td>
    <td><label style="float:right;">
    <input type="text" name="name" id="name" />
    </label></td>
    </tr>
    <tr>
    <td>Vornamme</td>
    <td><label style="float:right;">
    <input type="text" name="vname" id="vname" />
    </label></td>
    </tr>
    <tr>
    <td>Telefon</td>
    <td><label style="float:right;">
    <input type="text" name="tel" id="tel" />
    </label></td>
    </tr>
    <tr>
    <td>eMail</td>
    <td><label style="float:right;">
    <input type="text" name="mail" id="mail" />
    </label></td>
    </tr>
    <tr>
    <td>Anfrage</td>
    <td><label style="float:right; overflow:hidden;">
    <textarea name="frage" id="frage"></textarea>
    </label></td>
    </tr>
    <tr>
    <td><input type="submit" name="button" value="Senden" id="button" /></td>
    <td></td>
    </tr>
    </table>
    </form>


    </body>
    </html>

    PHP FILE:

    <?php


    echo "<h1>Kontaktdaten verarbeiten</h1>";


    $anrede = $_GET['anrede'];
    $name = $_GET['name'];
    $vname = $_GET['vname'];
    $tel = $_GET['tel'];
    $mail = $_GET['mail'];
    $frage = $_GET['frage'];


    echo "Anrede: $anrede <br />";
    echo "Name: $name <br />";
    echo "Vorname: $vname <br />";
    echo "Telefon: $tel <br />";
    echo "E-Mail: $mail <br />";
    echo "Frage: $frage <br />";


    mail("meinemail@mail.de", $name, $frage,);
    ?>



    Vielen dank für eure Hilfe.

    Demian

    2 Mal editiert, zuletzt von Demian (15. Juli 2011 um 22:07)

  • Zitat

    Ich bekomme die variablen und alles sauber ausgewiesen auf der PHP seite

    Im Leben nicht:

    <form action="auswertung.php" method="POST[b]" name="form1">

    $anrede = $_[b]GET['anrede'];

    Da kommt so nix im Script an.

    Und die mail-Funktion von PHP ist eine Krücke, benutzte eine fertige Klasse w.z.B. den phpMailer