Advertisement
KHIT

kontakt.php

Nov 17th, 2011
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>Creative-Spectrum - Booking</title>
  6. <SCRIPT LANGUAGE="JavaScript">
  7. <!-- Original:  Wayne Nolting (w.nolting@home.com) -->
  8.  
  9. <!-- This script and many more are available free online at -->
  10. <!-- The JavaScript Source!! http://javascript.internet.com -->
  11.  
  12. <!-- Begin
  13. function verify(f) {
  14. var themessage = "Du skal udfylde følgende felter: ";
  15. if (f.navn.value=="") {
  16. themessage = themessage + " - Navn";
  17. }
  18. if (f.besked.value=="") {
  19. themessage = themessage + " -  Besked";
  20. }
  21. if (f.email.value=="") {
  22. themessage = themessage + " -  E-mail";
  23. }
  24. //alert if fields are empty and cancel form submit
  25. if (themessage == "Du skal udfylde følgende felter: ") {
  26. return true;
  27. }
  28. else {
  29. alert(themessage);
  30. return false;
  31.   }
  32. }
  33.  
  34. //  End -->
  35. </script>
  36.  
  37. <style type="text/css">
  38. body,td,th {
  39.     color: #999;
  40. }
  41. body {
  42.     background-color: #000;
  43. }
  44. body {
  45.     font:Verdana; font-size:14px
  46. }
  47. </style>
  48. </head>
  49.  
  50. <body><table width="100%" border="1" bordercolor="#000000">
  51.   <tr>
  52.     <td><img src="../images/logo.png">
  53. <br>&nbsp;</td>
  54.   </tr>
  55.   <tr>
  56.     <td><form method="post" name="booking" action="kontakt/verify.php" onsubmit="return verify(this)">
  57.       <table width="100%" border="1" bordercolor="#000">
  58.       <tr><td>Vælg modtager:<select size="1" name="kontakt">
  59.             <option selected="selected" value="info@creativespectrum.dk">Generelt</option>
  60.             <option value="booking@creativespectrum.dk">Booking</option>
  61.       </select></td></tr>
  62.         <tr>
  63.         <td>Fulde Navn/Kontaktperson:*<input type="text" name="navn"></td>
  64.         <td>E-mail:*<input type="text" name="email"></td>
  65.         </tr>
  66.         <tr><td>Emne: <input type="text" name="emne"></td></tr>
  67.         <tr><td>Besked:*</td></tr>
  68.         <tr><td><textarea name="besked" rows="10" cols="50"></textarea></td></tr>
  69.           <tr><td colspan="5"><input type="submit" value="Send">
  70. <input type="reset" value="Ryd informationer"></td>
  71.         </tr>
  72.       </table>
  73.     </form></td>
  74.   </tr>
  75. </table>
  76. </body>
  77. </html>
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement