login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Contact

Offline delta_004 - 18/11/2004 17:22
Avatar van delta_004Onbekend Hey
Als ik iets niet invuld word er een nieuwe pagina gemaakt.
Maar ik wil dat het er boven kompt te staan
Hoe doe ik dat

  1. <html>
  2. <head>
  3. <meta content="en-us" http-equiv="Content-Language">
  4. <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
  5. <meta content="FrontPage.Editor.Document" name="ProgId">
  6. <meta content="Microsoft FrontPage 6.0" name="GENERATOR">
  7. <title>Bericht verzenden</title>
  8. <base target="_self">
  9. </head>
  10.  
  11. <body background="../fotos/layout/achtergrondklein.gif">
  12. <font face="Arial" color="#666666">
  13. <?
  14. $Jouwmail = "****"; // Zet hier je eigen e-mailadres neer!
  15.  
  16. if($_SERVER['REQUEST_METHOD'] == 'POST'){
  17. if($_POST['Naam'] == ""){
  18. echo"Please fill in all fields!"; }
  19. elseif($_POST['Email'] == ""){
  20. echo"Please fill in all fields!"; }
  21. elseif($_POST['Bericht'] == ""){
  22. echo"Please fill in all fields!"; }
  23. else {
  24. $Afzender_email = $_POST['Email'];
  25. $Afzender_naam = $_POST['Naam'];
  26. $Datum = "Datum van verzenden: " . date("Y-m-d H:i:s") . "\n";
  27.  
  28. mail("$Jouwmail", "$_POST[Onderwerp]", "
  29. Naam: $_POST[Naam]
  30. Email: $_POST[Email]
  31. Bericht: $_POST[Bericht]
  32. $Datum", "From: $Afzender_naam<$Afzender_email>\nReturn-path: $Afzender_email");
  33.  
  34. echo "Your message is send to Paul Lahaye!";
  35. } } else { ?>
  36. <html>
  37. <head>
  38. <title>E-mailformulier</title>
  39. </head>
  40. </font>
  41. <body bgcolor="#FFFFFF" text="#000000" background="../fotos/layout/achtergrondklein.gif">
  42. <form method="post">
  43. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  44. <tr>
  45. <td width="8%"><font face="Arial" color="#666666">Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  46. </font> </td>
  47. <td width="92%">
  48. <font color="#666666" face="Arial">
  49. <input type="text" name="Naam" size="30" bgcoler="#C0C0C0" maxlength="30" style="border: 1px solid #000000">
  50. </font>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td width="8%"><font face="Arial" color="#666666">E-mail:&nbsp;&nbsp;&nbsp;&nbsp;
  55. </font> </td>
  56. <td width="92%">
  57. <font color="#666666" face="Arial">
  58. <input type="text" name="Email" size="30" style="border: 1px solid #000000" maxlength="30">
  59. </font>
  60. </td>
  61. </tr>
  62.  
  63. <tr>
  64. <td width="8%"><font face="Arial" color="#666666">Message:&nbsp;&nbsp;&nbsp;&nbsp; <br>
  65. <br>
  66. <br>
  67. &nbsp;</font></td>
  68. <td width="92%">
  69. <font color="#666666" face="Arial">
  70. <textarea name="Bericht" maxlength="500" rows="5" cols="30" style="border: 1px solid #000000"></textarea>
  71. </font>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td width="8%"><font face="Arial" color="#666666">&nbsp;</font></td>
  76. <td width="92%"><font face="Arial" color="#666666">&nbsp;</font></td>
  77. </tr>
  78. <tr>
  79. <td width="8%"><font face="Arial" color="#666666">&nbsp; </font> </td>
  80. <td width="92%">
  81. <font face="Arial"><font color="#666666">
  82. <input type="submit" name="Submit" value="Send" style="border: 1px solid #000000">
  83. <input type="reset" name="Reset" value="Remove text" style="border: 1px solid #000000">
  84. </font>
  85. </td>
  86. </tr>
  87. </table>
  88. </form>
  89. <font color="#666666">
  90. </body>
  91. </html>
  92. </font></font><font color="#666666"><font face="Arial">
  93. <? } ?>
  94. </font></font>
  95. </body>
  96. </html>

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.209s