Kontakt Formular
lima-city → Forum → Programmiersprachen → PHP, MySQL & .htaccess
absolute scheie
beitrag
betreff
client
deswegen
extra
formular
grafik
kontakt
mail
manual
mode
page
passendes formular
passiert nix
show
transitional
tutorial
-
Hallo Leute,
auf einer Page habe ich so ein Kontakt-Formular, aber das funzt nicht so wie es soll.
Man soll da alles eintragen und auf abschicken dr?cken,d ann geht die Mail raus an den gew?nschten Empf?nger.
Passiert aber irgendwie nicht
Hier die Page:
http://zer0forum.ze.funpic.de/Solmyr/contact.php
Und hier der Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>TGW Free Template 4</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript"> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; function preloadImages() { if (document.images) { index_11_over = newImage("images/index_11-over.jpg"); index_12_over = newImage("images/index_12-over.jpg"); index_13_over = newImage("images/index_13-over.jpg"); index_14_over = newImage("images/index_14-over.jpg"); preloadFlag = true; } } // --> </script> <style type="text/css"> <!-- body { background-color: #FFFFFF; } .Stil1 { font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #aeaeae; } .Stil4 { color: #bbffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; } --> </style> </head> <body leftmargin="0" topmargin="0" onload="preloadImages();" marginheight="0" marginwidth="0"> <table id="Table_01" align="center" border="0" cellpadding="0" cellspacing="0" height="769" width="1025"> <tbody> <tr> <td colspan="3"> <img src="images/index_01.jpg" alt="" height="159" width="81"></td> <td colspan="4"> <img src="images/index_02.jpg" alt="" height="159" width="372"></td> <td colspan="2"> <a href="home.php"><img src="images/index_03.jpg" alt="" border="0" height="159" width="121"></a></td> <td colspan="4"> <img src="images/index_04.jpg" alt="" height="159" width="390"></td> <td colspan="2"> <img src="images/index_05.jpg" alt="" height="159" width="60"></td> <td> <img src="images/spacer.gif" alt="" height="159" width="1"></td> </tr> <tr> <td colspan="3" rowspan="2"> <img src="images/index_06.jpg" alt="" height="113" width="81"></td> <td rowspan="2"> <img src="images/index_07.jpg" alt="" height="113" width="219"></td> <td colspan="8"> <img src="images/index_08.jpg" alt="" height="85" width="439"></td> <td rowspan="2"> <img src="images/index_09.jpg" alt="" height="113" width="225"></td> <td colspan="2" rowspan="2"> <img src="images/index_10.jpg" alt="" height="113" width="60"></td> <td> <img src="images/spacer.gif" alt="" height="85" width="1"></td> </tr> <tr> <td colspan="2"> <a href="home.php" onmouseover="changeImages('index_11', 'images/index_11-over.jpg'); return true;" onmouseout="changeImages('index_11', 'images/index_11.jpg'); return true;" onmousedown="changeImages('index_11', 'images/index_11-over.jpg'); return true;" onmouseup="changeImages('index_11', 'images/index_11-over.jpg'); return true;"> <img name="index_11" src="images/index_11.jpg" alt="" border="0" height="28" width="91"></a></td> <td colspan="2"> <a href="about.php" onmouseover="changeImages('index_12', 'images/index_12-over.jpg'); return true;" onmouseout="changeImages('index_12', 'images/index_12.jpg'); return true;" onmousedown="changeImages('index_12', 'images/index_12-over.jpg'); return true;" onmouseup="changeImages('index_12', 'images/index_12-over.jpg'); return true;"> <img name="index_12" src="images/index_12.jpg" alt="" border="0" height="28" width="121"></a></td> <td colspan="2"> <a href="works.php" onmouseover="changeImages('index_13', 'images/index_13-over.jpg'); return true;" onmouseout="changeImages('index_13', 'images/index_13.jpg'); return true;" onmousedown="changeImages('index_13', 'images/index_13-over.jpg'); return true;" onmouseup="changeImages('index_13', 'images/index_13-over.jpg'); return true;"> <img name="index_13" src="images/index_13.jpg" alt="" border="0" height="28" width="122"></a></td> <td colspan="2"> <a href="contact.php" onmouseover="changeImages('index_14', 'images/index_14-over.jpg'); return true;" onmouseout="changeImages('index_14', 'images/index_14.jpg'); return true;" onmousedown="changeImages('index_14', 'images/index_14-over.jpg'); return true;" onmouseup="changeImages('index_14', 'images/index_14-over.jpg'); return true;"> <img name="index_14" src="images/index_14.jpg" alt="" border="0" height="28" width="105"></a></td> <td> <img src="images/spacer.gif" alt="" height="28" width="1"></td> </tr> <tr> <td> <img src="images/index_15.jpg" alt="" height="86" width="40"></td> <td colspan="3" rowspan="2"> <img src="images/index_16.jpg" alt="" height="95" width="260"></td> <td colspan="2" rowspan="2"> <img src="images/index_17.jpg" alt="" height="95" width="91"></td> <td colspan="2" rowspan="2"> <img src="images/index_18.jpg" alt="" height="95" width="121"></td> <td colspan="2" rowspan="2"> <img src="images/index_19.jpg" alt="" height="95" width="122"></td> <td colspan="2" rowspan="2"> <img src="images/index_20.jpg" alt="" height="95" width="105"></td> <td rowspan="2"> <img src="images/contact.jpg" alt="" height="95" width="225"></td> <td rowspan="2"> <img src="images/index_22.jpg" alt="" height="95" width="34"></td> <td> <img src="images/index_23.jpg" alt="" height="86" width="26"></td> <td> <img src="images/spacer.gif" alt="" height="86" width="1"></td> </tr> <tr> <td rowspan="4" background="images/index_24.jpg"> </td> <td rowspan="3" background="images/index_25.jpg"> </td> <td> <img src="images/spacer.gif" alt="" height="9" width="1"></td> </tr> <tr> <td background="images/index_26.jpg"> </td> <td colspan="11"> <table id="Table_01" border="0" cellpadding="0" cellspacing="0" height="269" width="907"> <tbody> <tr> <td height="15" width="15"><img src="images/content_01.jpg" alt="" height="15" width="15"></td> <td background="images/content_02.jpg" width="877"></td> <td height="15" width="15"><img src="images/content_03.jpg" alt="" height="15" width="15"></td> </tr> <tr> <td background="images/content_04.jpg"></td> <td bgcolor="#ffffff"> <p class="Stil1" align="center">Ihr wollte mir eine Mail schreiben,<br> <br> weil ihr meine Grafiken loben oder kritisieren wollt?<br> </p> <p class="Stil1" align="center">Oder ihr wollt mich einfach nur kennenlernen?</p> <p class="Stil1" align="center">Dann habt ihr hier die Möglichkeit dazu.</p> <p class="Stil1" align="center"> </p> <center> <form action="mailto:zero08@arcor.de" method="post" enctype="text/plain"> <table> <tbody> <tr> <td class="Stil1">Name:</td> <td><input style="font-family: Verdana; font-size: 12px; color: rgb(0, 0, 0);" name="Name" type="text"></td> </tr> <tr> <td class="Stil1">E-Mail:</td> <td><input style="font-family: Verdana; font-size: 12px; color: rgb(0, 0, 0);" name="Betreff" type="text"></td> </tr> <tr> <td class="Stil1">Betreff:</td> <td><input style="font-family: Verdana; font-size: 12px; color: rgb(0, 0, 0);" name="Betreff" type="text"></td> </tr> </tbody> </table> <p><textarea name="tl" cols="50" rows="5" style="font-family: Verdana; font-size: 12px; color: rgb(0, 0, 0);"></textarea></p> <p><button type="submit">Abschicken</button> <button type="reset">Abbrechen</button> </p> </form> </center> <p></p> </td> <td background="images/content_06.jpg"></td> </tr> <tr> <td height="15" width="15"><img src="images/content_07.jpg" alt="" height="15" width="15"></td> <td background="images/content_08.jpg" width="877"></td> <td height="15" width="15"><img src="images/content_09.jpg" alt="" height="15" width="15"></td> </tr> </tbody> </table> </td> <td background="images/index_28.jpg"> </td> <td> <img src="images/spacer.gif" alt="" height="269" width="1"></td> </tr> <tr> <td colspan="13" rowspan="2"> <img src="images/index_29.jpg" alt="" height="84" width="958"></td> <td> <img src="images/spacer.gif" alt="" height="15" width="1"></td> </tr> <tr> <td> <img src="images/index_30.jpg" alt="" height="69" width="26"></td> <td> <img src="images/spacer.gif" alt="" height="69" width="1"></td> </tr> <tr> <td> <img src="images/index_31.jpg" alt="" height="48" width="40"></td> <td colspan="4"> <img src="images/index_32.jpg" alt="" height="48" width="300"></td> <td colspan="6"> <a href="http://www.the-gfx-world.de"><img src="images/index_33.jpg" alt="" border="0" height="48" width="348"></a></td> <td colspan="3"> <img src="images/index_34.jpg" alt="" height="48" width="310"></td> <td> <img src="images/index_35.jpg" alt="" height="48" width="26"></td> <td> <img src="images/spacer.gif" alt="" height="48" width="1"></td> </tr> <tr> <td> <img src="images/spacer.gif" alt="" height="1" width="40"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="17"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="24"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="219"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="40"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="51"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="62"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="59"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="62"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="60"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="54"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="51"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="225"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="34"></td> <td> <img src="images/spacer.gif" alt="" height="1" width="26"></td> <td></td> </tr> </tbody> </table> </body> </html>
Beitrag ge?ndert: 13.9.2006 22:48:48 von zero-forum -
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage
-
Das Script ist absolute Scheisse... Wenn du Gl?ck hast, ?ffnet es dein Mailclient, sonst passiert nix (wenn du beispielsweise einen alten Browser hast) Ein Mail kann nur per PHP versendet werden und zwar so:
mail("addi@host.com", "Betreff", "Text, der versendet werden soll");
Unter http://www.gaijin.at/scrphpcform.php findest du ein komplettes Mailingscript und unter http://de.php.net/manual/de/function.mail.php gibts die PHP-Ref kostenlos. Selbstverst?ndlich k?nnen auch Attachments angeh?ngt werden und Fake-Mails angefertigt werden, doch dazu nix weiteres. (Falls du Interesse hast, schreib mir, damit ich dir ein passendes Formular erstellen kann)
MfG sebigisler -
Ein fertiges gibt es auch auf lima in den Tutorials:
http://www.lima-city.de/tutorials.php?mode=show&id=571
Naja viel Tutorial ist da nicht bei und sch?n formatiert ist es auch nicht, hab selbst ne Weile dran gesessen bis ich verstanden habe wie es funktioniert, aber es geht und man kann es so nehmen.
Constantin -
Hm, das ist nat?rlich auch n Idee..
Ich probier das mal aus und dann sehe ich weiter
Danke -
Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!
lima-city: Gratis werbefreier Webspace für deine eigene Homepage