Wieso will das nicht mehr

  • Wieso will das nicht mehr

    hier mal der quell text:

    HTML-Quellcode

    1. <html>
    2. <head>
    3. <script type="text/javascript">
    4. function check() {
    5. if (form.Nick.value=="")
    6. {
    7. alert ("Bitte geben Sie ein Nickname ein!");
    8. }
    9. if (form.Pass.value=="")
    10. {
    11. alert ("Bitte geben Sie ein Passwort ein!");
    12. }
    13. if (form.Email.value=="")
    14. {
    15. alert ("Bitte geben Sie Ihre E-mail adresse ein!");
    16. }
    17. }
    18. </script>
    19. </head>
    20. <body>
    21. <form name="form" methode="post" mailto:"xxxx@xxxxx.xy">
    22. Account :
    23. <input type="textfeld" value="" name="Nick" size="20"><br>
    24. Passwort:
    25. <input type="password" value="" name="Pass"><br>
    26. E-Mail Adress:
    27. <input type="textfeld" value="" name="Email"><br>
    28. <input type="button" value="Absckicken" name="Abs" onclick="check()">
    29. </form>
    30. </body>
    31. </html>
    Alles anzeigen
  • Ist dein Problem, dass das Formular nicht abgeschickt wird?
    Es gibt 1. Kein Submit (hab es jetzt eingetragen, wenn alle abfragen ok sind, sendet er das Formular...ist jetzt nicht die optimalste lösung, aber ich hab grad auch nicht wirklich viel zeit)
    2. kein Action...sehe selbst =)

    Quellcode

    1. <html>
    2. <head>
    3. <script type="text/javascript">
    4. function check() {
    5. if (form.Nick.value=="") {
    6. alert ("Bitte geben Sie ein Nickname ein!");
    7. } else {
    8. if (form.Pass.value=="") {
    9. alert ("Bitte geben Sie ein Passwort ein!");
    10. } else {
    11. if (form.Email.value=="") {
    12. alert ("Bitte geben Sie Ihre E-mail adresse ein!");
    13. } else {
    14. document.form.submit();
    15. }
    16. }
    17. }
    18. </script>
    19. </head>
    20. <body>
    21. <form name="form" methode="post" action="mailto:xxxx@xxxxx.xy" enctype="text/plain">
    22. Account :
    23. <input type="textfeld" value="" name="Nick" size="20"><br>
    24. Passwort:
    25. <input type="password" value="" name="Pass"><br>
    26. E-Mail Adress:
    27. <input type="textfeld" value="" name="Email"><br>
    28. <input type="button" value="Absckicken" name="Abs" onclick="check()">
    29. </form>
    30. </body>
    31. </html>
    Alles anzeigen