Formular mit HTML erstellen...?

  • Hey dort!


    Ich möchte auf meine Website ein Formular einbinden, mit dem man sich direkt für einen Club anmelden. Ich möchte dort Felder haben zum ausfüllen...ein Formular halt. Danach sollte da ein Button sein, mit dem man das komplette Formular via E-Mail an mich schicken kann.
    Ich hab nur leider absolut keine Ahnung von HTML-Codes und hab keine Ahnung was ich jetzt machen soll.
    Könnte mir da wer helfen?


    LG
    Tobias

  • <!-- -------------------------------- schnipp ---------------------------------------------------------------- -->


    <!-- Kontaktformular -->
    <center>
    <form name="contact" action="mailto:opa@waldburg.de" method="post" enctype="text/plain">
    <table border="0" cellspacing="7" cellpadding="0">
    <tr><td colspan="3">
    <h3>Kontaktformular</h3>
    </td></tr>
    <tr><td>Name:</td>
    <td><input type="text" name="Name" size="20" max-length"40"></td></tr>
    <tr><td>Vorname:</td>
    <td><input type="text" name="Vorname" size="20" max-length"40"></td></tr>
    <tr><td>Strasse:</td>
    <td><input type="text" name="Strasse" size="20" max-length"40"></td></tr>
    <tr><td>PLZ/Ort:</td>
    <td><input type="text" name="PLZ/Ort" size="20" max-length"40"></td></tr>
    <tr><td>Telefon:</td>
    <td><input type="text" name="Telefon" size="20" max-length"40"></td></tr>
    <tr><td>eMail:</td>
    <td><input type="text" name="eMail" size="20" max-length="40"></td></tr>
    <tr><td>Betreff:</td>
    <td><input type="text" name="Betreff" size="20" max-length"40" value="Anmeldung"></td></tr>
    <tr><td><br></td></tr>
    <tr><td valign="top">Nachricht:</td>
    <td><textarea name="Nachricht" rows="8" cols="45" wrap="hard"></textarea></td></tr>
    <tr><td>&nbsp;</td></tr>
    <tr><td>&nbsp;</td>
    <td><input type="submit" value="senden">&nbsp;
    <input type="reset" value="Reset"></td></tr>
    </table>
    </form>
    </center>
    <!-- /Kontaktformular -->


    <div align="center"><a href="mailto:opa@waldburg.de?subject=Anmeldung"><strong>opa@waldburg.de</strong></a></div>


    <!-- -------------------------------- schnapp ---------------------------------------------------------------- -->

  • Hallo zusammen,


    Ich habe noch etwas gesehen:


    maxlength wird m.E. nicht funzen, weil es zusammen geschrieben wird.


    Also verwendet bitte maxlength="" anstatt wie geschrieben. :wink:


    Wollte mich nicht einmischen, aber war mich aufgefallen.


    Gruss


    Fredi

  • Hey dort!!!


    Danke erstmal!
    Das ganze funktioniert schon halb *gg*! Ich kann zwar das Formular auf meine Homepage einbinden, jedoch kann ich das Formular nicht an mich schicken! Da ist der Link: http://psychoclub.dreipage.de/…9723_slivers_deutsch.html
    Wie gesagt, das Formular lässt sich einbinden uns ausfüllen, jedoch nicht an mich senden. Es öffnet sich bei mir zwar ein Fenster, ob man das Formular auch wirklich senden möchte, jedoch wird es nicht gesandt. Außerdem wird Outlook Express geöffnet...ich glaub da passt was nicht. Ich hätte gern sowas, dass man ohne Aufwand einfach auf "Senden" klickt und es dann verschickt wird...


    LG
    Tobias

  • Hallo,


    das Formular geht ja. Oft kannst du an dich selber kein Formular senden, frag mich nicht warum, aber bei mir ist das auch so (über Email senden).


    Du hast aber noch recht viele Fehler, einige kannst du sicher ohne grossen Aufwand beheben.


    Schöne Grüsse


    Fredi


    Below are the results of attempting to parse this document with an SGML parser.


    (Doctype entählt fehlende Einträge)
    Error Line 1 column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".
    <html>The checked page did not contain a document type ("DOCTYPE") declaration. The Validator has tried to validate with a fallback DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are given above -- and it is necessary to have this declaration before the page can be declared to be valid.



    (Head wird nicht geöffnet)
    Error Line 7 column 6: end tag for element "HEAD" which is not open.
    </head>The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.


    If this error occured in a script section of your document, you should probably read this FAQ entry.



    (style muss im Header benutzt werden, nicht im Body und auch vor Body schliessen)
    Error Line 9 column 5: document type does not allow element "BODY" here.
    <body>The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).


    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).



    Error Line 67 column 44: there is no attribute "WRAP".
    ... <td><textarea rows="8" wrap="hard" cols="45" name="Stell dich bitte You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).


    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.


    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.



    Error Line 82 column 3: end tag for element "P" which is not open.
    </p>✉


    Error Line 85 column 29: required attribute "TYPE" not specified.
    <script language="JavaScript">The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.


    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.



    Error Line 124 column 16: end tag for element "P" which is not open.
    </center><br></p></div>✉


    Error Line 132 column 29: required attribute "TYPE" not specified.
    <script language="JavaScript">✉


    Error Line 132 column 29: document type does not allow element "SCRIPT" here.
    <script language="JavaScript">

  • Hi!


    So wie du das Formular geschrieben hast, ist es klar, dass sich Outlook öffnet.


    Im <form> Tag (Befehl) steht bei action eine eMail Adresse. Mit action gibst du eine Zieladresse an.
    Wenn du die Sachen komfortabel zu dir schicken lassen willst, muss du PHP können.


    Oder:


    Wie onetwomax kann ich dir auch den Formmailer http://onlex.de/index.php4?pid=info_formmailer empfehlen. Mit dem arbeite ich schon seit 4 Jahren und bin super zufrieden damit.
    Keine Werbung, keine Banner, alle Einstellungen komfortabel in einem übersichtlichen Benutzerbereich konfigurierbar.
    Einen Workshop zum Thema "Wie richte ich ein Formular ein" wurde auch geschrieben. Und soweit ich von den Betreibern mitbekommen habe, wird dieser Workshop momentan überarbeitet.


    Kannst es dir ja mal anschauen. Ich bin damit super zufrieden. Kannst dich ja per PM melden, wenn du Fragen hast. Als alter Onlex User weiss ich schon viel :-D


    Gruss Marcel