login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Contact

Offline delta_004 - 07/01/2005 17:52
Avatar van delta_004Onbekend Hoi
Vraagje hoe moet je hier een email chekker op zette ?
  1. <form method="post">
  2. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  3. <tr>
  4. <td width="8%"><font color="#666666">To:</font><font face="Arial" color="#666666">&nbsp;&nbsp;&nbsp;
  5. </font> </td>
  6. <td width="92%">
  7. <font color="#666666" face="Arial">
  8.  
  9.  
  10.  
  11. <Select style="border: 1px solid #000000" size=1 name=naar>
  12. <option value=>Paul Lahaye</option>
  13. <option value=>Nympha Stassen</option>
  14. <option value=>Mike Lahaye</option>
  15. <option value=>Rick Lahaye</option>
  16. <option value=>Chris Lahaye (webmaster)</option>
  17. </select> </font></td>
  18. </tr>
  19. <tr>
  20. <td width="8%"><font face="Arial" color="#666666">Name:&nbsp;
  21. </font> </td>
  22. <td width="92%">
  23. <font color="#666666" face="Arial">
  24. <input type="text" name="Naam" size="30" bgcoler="#C0C0C0" maxlength="30" style="border: 1px solid #000000"></font></td>
  25. </tr>
  26.  
  27. <tr>
  28. <td width="8%"><font face="Arial" color="#666666">
  29. E-mail:&nbsp;&nbsp; </font></td>
  30. <td width="92%">
  31. <font color="#666666" face="Arial">
  32. <input type="text" name="Email" size="30" style="border: 1px solid #000000" maxlength="30">
  33. </font>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td width="8%" height="340" align="left" valign="top"><font face="Arial" color="#666666">
  38. Message: &nbsp;</font></td>
  39. <td width="92%" height="340">
  40. <font color="#666666" face="Arial">
  41. <textarea name="Bericht" maxlength="500" rows="20" cols="42" style="border: 1px solid #000000"></textarea><br>
  42. &nbsp;</font></td>
  43. </tr>
  44. <tr>
  45. <td width="8%"><font face="Arial" color="#666666">&nbsp; </font> </td>
  46. <td width="92%">
  47. <font face="Arial"><font color="#666666">
  48. &nbsp;<input style="border: 1px solid #000000; font-weight: bold" type="button" value="B" name="B3" onClick="javascript:addtext('Bericht','[b]Bold Text[/b]')" style="font-weight:bold;">
  49. <input type="button" style="border: 1px solid #000000; font-style: italic" value="I" name="B4" onClick="javascript:addtext('Bericht','[i]Italic Text[/i]')" style="font-style:italic;">
  50. <input type="button" style="border: 1px solid #000000; text-decoration: underline" value="U" name="B5" onClick="javascript:addtext('Bericht','[u]Underline Text[/u]')" style="text-decoration: underline;">
  51. <img border="0" alt="Happy" src="../fotos/smileys/blij.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(^_^)')">
  52. <img border="0" alt="Shout" src="../fotos/smileys/huh.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(?)')">
  53. <img border="0" alt="Shy" src="../fotos/smileys/rood.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(]0)')">
  54. <img border="0" alt="Cheeky" src="../fotos/smileys/tong.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(o=)')">
  55. <img border="0" alt="What?" src="../fotos/smileys/vragen.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(#$%)')">
  56. <img border="0" alt="Surprised" src="../fotos/smileys/whow.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(#^&)')">
  57. <img border="0" alt="Beer" src="../fotos/smileys/bier.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(#*_)')">
  58. <img border="0" alt="Nasty" src="../fotos/smileys/bah.gif" width="19" height="19" onClick="javascript:addtext('Bericht','(!@#)')">
  59. <br>
  60. &nbsp;</font></td>
  61. </tr>
  62. <tr>
  63. <td width="8%">&nbsp;</td>
  64. <td width="92%">
  65. <font color="#666666" face="Arial">
  66. <input type="submit" name="Submit" value="Send" style="border: 1px solid #000000">
  67. <input type="reset" name="Reset" value="Remove text" style="border: 1px solid #000000"></font></td>
  68. </tr>
  69. </table>
  70. </form>
  71. <font color="#666666">
  72. </body>
  73. </html>
  74. </font></font><font color="#666666"><font face="Arial">
  75.  
  76. </font></font>
  77. <p>
  78. <font face="Arial" color="#000000">
  79. <?php
  80.  
  81.  
  82. // Zet hier je eigen e-mailadres neer!
  83.  
  84. if($_SERVER['REQUEST_METHOD'] == 'POST'){
  85. if($_POST['Naam'] == ""){
  86. echo"<script language=\"JavaScript\">alert(\"Please fill in all fiels!\")</script>"; }
  87. elseif($_POST['Email'] == ""){
  88. echo"<script language=\"JavaScript\">alert(\"Please fill in all fiels!\")</script>"; }
  89. elseif($_POST['Bericht'] == ""){
  90. echo"<script language=\"JavaScript\">alert(\"Please fill in all fiels!\")</script>"; }
  91. else {
  92. $Afzender_email = $_POST['Email'];
  93. $Afzender_naam = $_POST['Naam'];
  94. $Datum = "Datum van verzenden: " . date("Y-m-d H:i:s") . "\n";
  95.  
  96. $Bericht = $_POST['Bericht'];
  97. $Bericht = str_replace("(^_^)","<img src=http://www.lahaye.ws/fotos/smileys/blij.gif border=0>", $Bericht);
  98. $Bericht = str_replace("(?)","<img src=http://www.lahaye.ws/fotos/smileys/huh.gif border=0>", $Bericht);
  99. $Bericht = str_replace("(]0)","<img src=http://www.lahaye.ws/fotos/smileys/rood.gif border=0>", $Bericht);
  100. $Bericht = str_replace("(o=)","<img src=http://www.lahaye.ws/fotos/smileys/tong.gif border=0>", $Bericht);
  101. $Bericht = str_replace("(#$%)","<img src=http://www.lahaye.ws/fotos/smileys/vragen.gif border=0>", $Bericht);
  102. $Bericht = str_replace("(#^&)","<img src=http://www.lahaye.ws/fotos/smileys/whow.gif border=0>", $Bericht);
  103. $Bericht = str_replace("(#*_)","<img src=http://www.lahaye.ws/fotos/smileys/bier.gif border=0>", $Bericht);
  104. $Bericht = str_replace("(!@#)","<img src=http://www.lahaye.ws/fotos/smileys/bah.gif border=0>", $Bericht);
  105.  
  106.  
  107. $Bericht = str_replace("[b]","<b>", $Bericht);
  108. $Bericht = str_replace("[/b]","</b>", $Bericht);
  109. $Bericht = str_replace("[i]","<i>", $Bericht);
  110. $Bericht = str_replace("[/i]","</i>", $Bericht);
  111. $Bericht = str_replace("[u]","<u>", $Bericht);
  112. $Bericht = str_replace("[/u]","</u>", $Bericht);
  113.  
  114. $ipadres=$_SERVER['REMOTE_ADDR'];
  115. $headers= "MIME-Version: 1.0\r\n";
  116. $headers= "Content-Type: text/html; charset=iso-8859-1\r\n";
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123. mail("$naar", "Website mail", "
  124. Naam: $_POST[Naam] <br>
  125. Email: $_POST[Email] <br>
  126. IP: $ipadres <br>
  127. Bericht: $Bericht <br>
  128. $Datum
  129. ", "$headers From: lahaye.ws\nReturn-path: $Afzender_email ");
  130.  
  131.  
  132.  
  133. echo "<script language=\"JavaScript\">alert(\"Your message is sent!\")</script>";
  134. } } else { ?>
  135. </font>
  136. <? } ?>

ALvast bedankt

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.18s