einfaches verschicken von Formular

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • einfaches verschicken von Formular

    Hallo, ich bin auf der Suche nach der Möglichkeit, den Inhalt eines einfachen Formulars an meine eMail Adresse schicken zu lassen.
    Ich find nur Scripte mit cgi und mehreren php datein mit funktionen wie captcha, flood schutz, ...

    Aber solche funktionen brauche ich nicht, es soll einfach eine Datei sein, wo ich auch die html drin hab...


    <form >
    <table width="337" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="150"><span>TEXT1 </span></td>
    <td width="199"><input type="text" name="text1" /></td>
    </tr>
    <tr>
    <td><span>Text2</span></td>
    <td><input type="text" name="Text2" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="los" /></td>
    </tr>
    </table>
    </form>


    und dann halt noch ein php code, womit der Inhalt an meine mail verschickt wird....

    Freu mich auf antworten!
    MFG Flo

  • #2
    1. setze ein action attribut zu einer php-datei mit method post
    2. dort gibt du dir die inhalte mit print_r ($_POST) aus, um zu sehen, was passiert
    3. dann schau dir die mail-funktion an
    4. bei weiteren fragen einfach melden

    gruß
    peter
    Nukular, das Wort ist N-u-k-u-l-a-r (Homer Simpson)
    Meine Seite

    Kommentar


    • #3
      **move** Scriptgesuche oder Projekthilfe ?
      Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

      [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
      Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

      Kommentar


      • #4
        **move** Scriptgesuche oder Projekthilfe ?
        OffTopic:
        mal abwarten, was kommt. ich stehe ja sowieso über dir. ätsch

        gruß
        peter
        Nukular, das Wort ist N-u-k-u-l-a-r (Homer Simpson)
        Meine Seite

        Kommentar


        • #5
          mal abwarten, was kommt. ich stehe ja sowieso über dir. ätsch
          OffTopic:

          Darum war es als Frage formuliert Eure Muftigkeit


          Gruss

          tobi
          Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

          [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
          Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

          Kommentar


          • #6
            ähm... sorry, weiss nix damit anzufangen... bin absoluter neuling in sachen php...

            Kommentar


            • #7
              **move** nach Projekthilfe. Ich habe gerade hier ein paar Codezeilen gepostet. Du musst einfach im ersten Teil (eintragen.php) die Zeilen entfernen, die mit mysql zu tun haben. Wenn du die Namen der Felder im Formular anpasst oder neue hinzufügst, dann musst du die Bedingungen anpassen!
              Den zweiten Teil (auslesen.php) brauchst du gar nicht

              Gruss

              tobi
              EDIT:

              Musst natürlich auch noch $text anpassen, so dass es dir passt

              Zuletzt geändert von jahlives; 14.02.2008, 23:39.
              Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

              [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
              Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

              Kommentar

              Lädt...
              X