Advertisement
Guest User

html form

a guest
Dec 23rd, 2010
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['email'])) {
  3.  
  4. // SEND TO
  5. $to = "webmaster@marineconomicforum.org";
  6. $email_subject = "MEF Application";
  7.  
  8.  
  9.  
  10.  
  11. $name = $_POST['name'];
  12. $primary_organization = $_POST['primary_organization'];
  13. $eprimary_position = $_POST['primary_position'];
  14. $street = $_POST['street'];
  15. $city = $_POST['city'];
  16. $state = $_POST['state'];
  17. $zip = $_POST['zip'];
  18. $address = $_POST['address'];
  19. $day_phone = $_POST['day_phone'];
  20. $mobile_phone = $_POST['mobile_phone'];
  21. $qualifiy1 = $_POST['qualify1'];
  22. $qualifiy2 = $_POST['qualify2'];
  23. $qualifiy3 = $_POST['qualify3'];
  24. $group1 = $_POST['group1'];
  25. $position1 = $_POST['position1'];
  26. $group2 = $_POST['group2'];
  27. $position2 = $_POST['position2'];
  28. $group3 = $_POST['group3'];
  29. $position3 = $_POST['position3'];
  30. $group4 = $_POST['group4'];
  31. $position4 = $_POST['position4'];
  32. $group5 = $_POST['group5'];
  33. $position5 = $_POST['position5'];
  34. $position = $_POST['position'];
  35. $comittee1 = $_POST['comittee1'];
  36. $comittee_position1 = $_POST['comittee_position1'];
  37. $comittee2 = $_POST['comittee2'];
  38. $comittee_position2 = $_POST['comittee_position2'];
  39. $comittee3 = $_POST['comittee3'];
  40. $comittee_position3 = $_POST['comittee_position3'];
  41. $comittee4 = $_POST['comittee4'];
  42. $comittee_position4 = $_POST['comittee_position4'];
  43. $accomplishments = $_POST['accomplishments'];
  44. $interests = $_POST['interests'];
  45. $comments = $_POST['comments'];
  46.  
  47.  
  48.  
  49.  
  50.  
  51. }
  52.  
  53. $content =$_POST['name'] . "\n";
  54. $content = $_POST['primary_organization'] . "\n";
  55. $content = $_POST['primary_position'] . "\n";
  56. $content = $_POST['street'] ."\n";
  57. $content = $_POST['city'] . "\n";
  58. $content = $_POST['state'] . "\n";
  59. $content = $_POST['zip'] . "\n";
  60. $content = $_POST['address'] . "\n";
  61. $content = $_POST['day_phone'] . "\n";
  62. $content = $_POST['mobile_phone'] . "\n";
  63. $content = $_POST['qualify1'] . "\n";
  64. $content = $_POST['qualify1'] . "\n";
  65. $content = $_POST['qualify2'] . "\n";
  66. $content = $_POST['qualify3'] . "\n";
  67. $content = $_POST['qualify1'] . "\n";
  68. $content = $_POST['qualify2'] . "\n";
  69. $content = $_POST['qualify3'] . "\n";
  70. $content = $_POST['group1'] . "\n";
  71. $content = $_POST['position1'] ."\n";
  72. $content = $_POST['group2'] . "\n";
  73. $content = $_POST['position2'] . "\n";
  74. $content = $_POST['group3'] . "\n";
  75. $content = $_POST['position3'] . "\n";
  76. $content = $_POST['group4'] . "\n";
  77. $content = $_POST['position4'] . "\n";
  78. $content = $_POST['group5'] . "\n";
  79. $content = $_POST['position5'] . "\n";
  80. $content = $_POST['comittee1'] . "\n";
  81. $content = $_POST['comittee_position1'] . "\n";
  82. $content = $_POST['comittee2'] . "\n";
  83. $content = $_POST['comitteeposition2'] . "\n";
  84. $content = $_POST['comittee3'] . "\n";
  85. $content = $_POST['comittee_position3'] . "\n";
  86. $content = $_POST['comittee4'] . "\n";
  87. $content = $_POST['comittee_position4'] . "\n";
  88. $content = $_POST['interests'] . "\n";
  89. $content = $_POST['comments'] ."\n";
  90. }
  91.  
  92. mail($to, $email_subject, $message, $headers); ?>
  93.  
  94.  
  95. // create email headers
  96. $headers = 'From: '.$email_from."\r\n".
  97. 'Reply-To: '.$email_from."\r\n" .
  98. 'X-Mailer: PHP/' . phpversion();
  99. @mail($email_to, $email_subject, $email_message, $headers);
  100. ?>
  101.  
  102. <!-- http://marineconomicforum.org/send_form_application.php -->
  103.  
  104. Thank you for contacting us. We will be in touch with you very soon.
  105.  
  106. <?php
  107. }
  108. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement