Skip to content

Instantly share code, notes, and snippets.

@MaxMSuper
Last active March 20, 2017 14:32
Show Gist options
  • Save MaxMSuper/93e66ec1632e492fd3f1a852618addef to your computer and use it in GitHub Desktop.
Save MaxMSuper/93e66ec1632e492fd3f1a852618addef to your computer and use it in GitHub Desktop.
<?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