<?php
if (isset($_POST['name'])) {$name = $_POST['name'];}
if (isset($_POST['phone'])) {$phone = $_POST['phone'];}
if (isset($_POST['addres'])) {$addres = $_POST['addres'];}
$address = "ka.pavel2012@yandex.ru";
$mes = "Тема: Заказ обратного звонка! \nТелефон: ".$phone."\nИмя: ".$name."\nE-mail:".$addres."ka.pavel2012@yandex.ru";
$sub='Заказ';
$email='Заказ <giro-sell.ru>';
$send = mail ($address,$sub,$mes,"Content-type:text/plain; charset = utf-8\r\nFrom:$email");
ini_set('short_open_tag', 'On');
header('Refresh: 3; URL=index.html');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="refresh" content="3; url=index.html">
<title>С вами свяжутся</title>
<meta name="generator">
<style type="text/css">
body
{
background:
}
<script type="text/javascript">
setTimeout('location.replace("/index.html")', 5000);
</script>
</head>
</body>
</html>