Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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="">
- <input type="hidden" name="formservices[]" value="10d7422ac0a93f94245e9c3157f87657" class="js-formaction-services">
- <div style="position: absolute; left: -5000px;"><input id="phone-call" type="text" name="phone-call" tabindex="-1" value=""></div>
- <div class="t651__input-container">
- <div class="js-successbox t651__blockinput-success t-text t-text_md" style="display:none;">
- <div class="t651__success-icon">
- <svg width="50px" height="50px" viewBox="0 0 50 50">
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
- <g fill="#222">
- <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>
- <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>
- </g>
- </g>
- </svg>
- </div>
- <div id="success-call" class="t651__success-message t-descr t-descr_sm">Спасибо! Ваша заявка принята. Мы уже звоним.</div>
- </div>
- </div>
- <div class="t651__input-wrapper">
- <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>
- <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>
- </div>
- </div>
- </form>
- <?php
- error_reporting(-1);
- ini_set('display_errors', 'On');
- date_default_timezone_set('UTC');
- $to = "zh.zhanelya@gmail.com";
- $subject = "Zakon Pravo Перезвонить";
- if(isset($_POST["send-call"])){
- $message = '
- <html>
- <head>
- <title>'.$subject.'</title>
- </head>
- <body>
- <h2>'.$subject.'</h2>
- <p>Телефон: ' . $_POST['phone-call'] . '</p>
- </body>
- </html>';
- }
- $headers = "Content-type: text/html; charset=utf-8 rn";
- $headers .= 'To: zh.zhanelya@gmail.com <zh.zhanelya@gmail.com>' . "rn";
- $headers .= "From: Zakon-Pravo <info@zakonpravo.kz>rn";
- if (mail($to, $subject, $message, $headers)){
- echo "da";
- }
- else{
- echo "net";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement