Guest User

html form

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