<?php
if ($_SERVER['REQUEST_METHOD'] == "POST") {
header('Content-type: text/plain; charset=utf-8');
$to = "damirgaliev587@gmail.com";
$tema = "Форма обратной связи на PHP";
$message = "Ваше имя: ".htmlspecialchars($_POST['name'])."<br>";
$message .= "E-mail: ".htmlspecialchars($_POST['email'])."<br>";
$message .= "Номер телефона: ".htmlspecialchars($_POST['phone'])."<br>";
$message .= "Сообщение: ".htmlspecialchars($_POST['message'])."<br>";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
mail($to, $tema, $message, $headers);
}
header('Location: index.html');
?>
R::getAll( 'select * from yourtablename where email = :email',
array(':email'=>$_POST['email'])
);
PassengerEnabled On
PassengerPython /usr/bin/python
Готово!#!/usr/bin/env python2
#-*- coding: utf-8 -*-
print("Content-type: text/html")
print("\n")
print("<h1>Hello world!</h1>")
https://oauth.vk.com/authorize?client_id=2685278&scope=1073737727&redirect_uri=https://oauth.vk.com/blank.html&display=page&response_type=token&revoke=1