Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. <form id="form24802678" name='form24802678' role="form" action='PHPorder-call.php' method='POST' data-formactiontype="2" data-inputbox=".t651__blockinput" class="js-form-proccess " data-tilda-captchakey="">
  2. <input type="hidden" name="formservices[]" value="10d7422ac0a93f94245e9c3157f87657" class="js-formaction-services">
  3. <div style="position: absolute; left: -5000px;"><input id="phone-call" type="text" name="phone-call" tabindex="-1" value=""></div>
  4. <div class="t651__input-container">
  5. <div class="js-successbox t651__blockinput-success t-text t-text_md" style="display:none;">
  6. <div class="t651__success-icon">
  7. <svg width="50px" height="50px" viewBox="0 0 50 50">
  8. <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
  9. <g fill="#222">
  10. <path d="M25.0982353,49.2829412 C11.5294118,49.2829412 0.490588235,38.2435294 0.490588235,24.6752941 C0.490588235,11.1064706 11.53,0.0670588235 25.0982353,0.0670588235 C38.6664706,0.0670588235 49.7058824,11.1064706 49.7058824,24.6752941 C49.7058824,38.2441176 38.6664706,49.2829412 25.0982353,49.2829412 L25.0982353,49.2829412 Z M25.0982353,1.83176471 C12.5023529,1.83176471 2.25529412,12.0794118 2.25529412,24.6752941 C2.25529412,37.2705882 12.5023529,47.5182353 25.0982353,47.5182353 C37.6941176,47.5182353 47.9411765,37.2705882 47.9411765,24.6752941 C47.9411765,12.0794118 37.6941176,1.83176471 25.0982353,1.83176471 L25.0982353,1.83176471 Z"></path>
  11. <path d="M22.8435294,30.5305882 L18.3958824,26.0829412 C18.0511765,25.7382353 18.0511765,25.18 18.3958824,24.8352941 C18.7405882,24.4905882 19.2988235,24.4905882 19.6435294,24.8352941 L22.8429412,28.0347059 L31.7282353,19.1488235 C32.0729412,18.8041176 32.6311765,18.8041176 32.9758824,19.1488235 C33.3205882,19.4935294 33.3205882,20.0517647 32.9758824,20.3964706 L22.8435294,30.5305882 L22.8435294,30.5305882 Z"></path>
  12. </g>
  13. </g>
  14. </svg>
  15. </div>
  16. <div id="success-call" class="t651__success-message t-descr t-descr_sm">Спасибо! Ваша заявка принята. Мы уже звоним.</div>
  17. </div>
  18. </div>
  19. <div class="t651__input-wrapper">
  20. <div class="t651__blockinput"> <input id="phone-call" type="text" name="phone-call" class="t651__input t-input js-tilda-rule " value="" placeholder="+7 (XXX) XXX XXXX" onfocus="this.placeholder = ''" onblur="this.placeholder = '+7 (XXX) XXX XXXX'" data-tilda-req="1" data-tilda-rule="phone" style=" border:1px solid #d1d1d1; "> </div>
  21. <div class="t651__blockbutton"> <button name="send-call" type="submit" class="t651__submit t-submit" style="color:#ffffff;background-color:#d8ae76;border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px;font-family:Roboto Condensed;font-weight:600;text-transform:uppercase;">Перезвоните мне</button> </div>
  22. </div>
  23. </div>
  24. </form>
  25.  
  26. <?php
  27.  
  28. error_reporting(-1);
  29. ini_set('display_errors', 'On');
  30.  
  31. date_default_timezone_set('UTC');
  32. $to = "zh.zhanelya@gmail.com";
  33. $subject = "Zakon Pravo Перезвонить";
  34.  
  35. if(isset($_POST["send-call"])){
  36. $message = '
  37. <html>
  38. <head>
  39. <title>'.$subject.'</title>
  40. </head>
  41. <body>
  42. <h2>'.$subject.'</h2>
  43. <p>Телефон: ' . $_POST['phone-call'] . '</p>
  44. </body>
  45. </html>';
  46. }
  47.  
  48. $headers = "Content-type: text/html; charset=utf-8 rn";
  49. $headers .= 'To: zh.zhanelya@gmail.com <zh.zhanelya@gmail.com>' . "rn";
  50. $headers .= "From: Zakon-Pravo <info@zakonpravo.kz>rn";
  51. if (mail($to, $subject, $message, $headers)){
  52. echo "da";
  53. }
  54. else{
  55. echo "net";
  56. }
  57. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement