Last active
March 20, 2017 14:32
-
-
Save MaxMSuper/93e66ec1632e492fd3f1a852618addef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($_GET['phone']) { | |
$id = 'XXXX'; | |
$key = 'XXXXXXX'; | |
$bytehandFrom = 'SMS-INFO'; | |
$text = 'Заказ обратного звонка с номера: ' . $_GET['phone']; | |
$to = 'XXXXXXX'; | |
$result = file_get_contents('http://bytehand.com:3800/send?id='.$id.'&key='.$key.'&to='.urlencode($to).'&from='.urlencode($bytehandFrom).'&text='.urlencode($text)); | |
} | |
?> | |
<form action="" class="form_zakaz"> | |
<label class="form-group error"> | |
<span class="color_element">*</span> Ваш номер телефона: | |
<input type="tel" name="phone" placeholder="Например: 89248112525" data-validation-required-message="Вы не ввели номер телефона" required aria-invalid="false" /> | |
<span class="help-block text-danger"></span> | |
</label> | |
<button>Заказать сауну</button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment