Advertisement
Guest User

Untitled

a guest
Feb 12th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.20 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['submit'])){
  3. $to = "naveedtubasum@gmail.com"; // this is your Email address
  4. $from = $_POST['o_email']; // this is the sender's Email address
  5.  
  6. $o_email = $_POST['o_email'];
  7.  
  8. $o_address = $_POST['o_address'];
  9.  
  10. $subject = "buy alert from aluta";
  11. //$subject2 = "Copy of your from Aluta";
  12. $message =" Hi, admin, you have an message from OFFICE nr Message: ". $o_address ." nrProduct link: nn" . $_POST['message'];
  13. // $message2 = "Here is a copy of your message " . $s_name . "nn" . $_POST['message'];
  14.  
  15. $headers = "From:" . $from;
  16. $headers2 = "From:" . $to;
  17. mail($to,$subject,$message,$headers);
  18. //mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender
  19. echo "<h3>Mail Sent. Thank you " . $s_name . ", You will be contacted now.<h3>";
  20. // You can also use header('Location: thank_you.php'); to redirect to another page.
  21. }
  22. ?>
  23.  
  24. <div class="modal fade" id="office" role="dialog">
  25. <div class="modal-dialog modal-md">
  26. <div class="modal-content">
  27. <div class="modal-header">
  28. <button type="button" class="close" data-dismiss="modal">&times;</button>
  29. <h4 class="modal-title">GET UPDATED ON THE DIME</h4>
  30. </div>
  31. <div class="modal-body">
  32. <form method="post" action="" class="form-horizontal">
  33. <div class="form-group">
  34.  
  35. <div class="col-sm-12">
  36. <input type="email" class="form-control" name="o_email" placeholder="Enter email">
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <div class="col-sm-12">
  41. <textarea type="text" class="form-control" rows="8" name="o_address" placeholder="I'm Intrested in retail space"></textarea>
  42. </div>
  43. </div>
  44. <style>
  45. .btn-default {
  46. color: #fff;
  47. background-color: #080808;
  48. border-color: #ccc;}
  49. </style>
  50. <div class="form-group">
  51. <div class="col-sm-12">
  52. <input type="submit" name="submit" class="btn-block btn btn-default" value="Submit"/>
  53. </div>
  54. </div>
  55. </form>
  56. </div>
  57.  
  58. </div>
  59. </div>
  60. </div>
  61.  
  62. <?php
  63. if(isset($_POST['submit'])){
  64. $to = "naveedtubasum2@gmail.com"; // this is your Email address
  65. $from = $_POST['s_email']; // this is the sender's Email address
  66.  
  67. $s_email = $_POST['s_email'];
  68.  
  69. $s_address = $_POST['s_address'];
  70.  
  71. $subject = "buy alert from aluta";
  72. //$subject2 = "Copy of your from Aluta";
  73. $message =" Hi, admin, you have an message from RESIDENCES nr Message: ". $s_address ." nrProduct link: nn" . $_POST['message'];
  74. // $message2 = "Here is a copy of your message " . $s_name . "nn" . $_POST['message'];
  75.  
  76. $headers = "From:" . $from;
  77. $headers2 = "From:" . $to;
  78. mail($to,$subject,$message,$headers);
  79. //mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender
  80. echo "<h3>Mail Sent. Thank you " . $s_name . ", You will be contacted now.<h3>";
  81. // You can also use header('Location: thank_you.php'); to redirect to another page.
  82. }
  83. ?>
  84.  
  85.  
  86. <div class="modal fade" id="residences" role="dialog">
  87. <div class="modal-dialog modal-md">
  88. <div class="modal-content">
  89. <div class="modal-header">
  90. <button type="button" class="close" data-dismiss="modal">&times;</button>
  91. <h4 class="modal-title">GET UPDATED ON THE DIME</h4>
  92. </div>
  93. <div class="modal-body">
  94. <form method="post" action="" class="form-horizontal">
  95. <div class="form-group">
  96.  
  97. <div class="col-sm-12">
  98. <input type="email" class="form-control" name="s_email" placeholder="Enter email">
  99. </div>
  100. </div>
  101. <div class="form-group">
  102. <div class="col-sm-12">
  103. <textarea type="text" class="form-control" rows="8" name="s_address" placeholder="I'm Intrested in retail space"></textarea>
  104. </div>
  105. </div>
  106.  
  107. <div class="form-group">
  108. <div class="col-sm-12">
  109. <input type="submit" name="submit" class="btn-block btn btn-default" value="Submit"/>
  110. </div>
  111. </div>
  112. </form>
  113. </div>
  114.  
  115. </div>
  116. </div>
  117. </div>
  118.  
  119.  
  120.  
  121. <?php
  122. if(isset($_POST['submit'])){
  123. $to = "naveedtubasum3@gmail.com"; // this is your Email address
  124. $from = $_POST['r_email']; // this is the sender's Email address
  125.  
  126. $r_email = $_POST['r_email'];
  127.  
  128. $r_address = $_POST['r_address'];
  129.  
  130. $subject = "buy alert from aluta";
  131. //$subject2 = "Copy of your from Aluta";
  132. $message =" Hi, admin, you have an message from OFFICE nr Message: ". $r_address ." nrProduct link: nn" . $_POST['message'];
  133. // $message2 = "Here is a copy of your message " . $s_name . "nn" . $_POST['message'];
  134.  
  135. $headers = "From:" . $from;
  136. $headers2 = "From:" . $to;
  137. mail($to,$subject,$message,$headers);
  138. //mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender
  139. echo "<h3>Mail Sent. Thank you " . $s_name . ", You will be contacted now.<h3>";
  140. // You can also use header('Location: thank_you.php'); to redirect to another page.
  141. }
  142. ?>
  143. <div class="modal fade" id="retail" role="dialog">
  144. <div class="modal-dialog modal-md">
  145. <div class="modal-content">
  146. <div class="modal-header">
  147. <button type="button" class="close" data-dismiss="modal">&times;</button>
  148. <h4 class="modal-title">GET UPDATED ON THE DIME</h4>
  149. </div>
  150. <div class="modal-body">
  151. <form method="post" action="" class="form-horizontal">
  152. <div class="form-group">
  153.  
  154. <div class="col-sm-12">
  155. <input type="email" class="form-control" name="r_email" placeholder="Enter email">
  156. </div>
  157. </div>
  158. <div class="form-group">
  159. <div class="col-sm-12">
  160. <textarea type="text" class="form-control" rows="8" name="r_address" placeholder="I'm Intrested in retail space"></textarea>
  161. </div>
  162. </div>
  163.  
  164. <div class="form-group">
  165. <div class="col-sm-12">
  166. <input type="submit" name="submit" class="btn-block btn btn-default" value="Submit"/>
  167. </div>
  168. </div>
  169. </form>
  170. </div>
  171.  
  172. </div>
  173. </div>
  174. </div>
  175.  
  176. <input type="submit" name="submit" class="btn-block btn btn-default" value="Submit"/>
  177.  
  178. if(isset($_POST['submit'])){
  179.  
  180. <input type="submit" name="submit1" class="btn-block btn btn-default" value="Submit"/>
  181.  
  182. if(isset($_POST['submit1'])){
  183.  
  184.  
  185.  
  186. <input type="submit" name="submit2" class="btn-block btn btn-default" value="Submit"/>
  187.  
  188. if(isset($_POST['submit2'])){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement