$( document ).ready(function() {
$( "#registr" ).click(function() {
var str = $("#form_reg").serialize();
console.log(str);
$.ajax({
type: "POST",
url: "control_registration.php",
data: str,
async: true,
cache: false,
success: function(html){
console.log(html);
}
});
});
});
скрипт обработчик
<?php
header ("Content-Type: text/html; carset=utf-8");
header ("Cash-Control: no-store,no-cahe");
$link = mysqli_connect("localhost","root","","obvserp") or die("Error " . mysqli_error($link));
// echo "11111";
$email = $POST['email'];
// $pass= $POST['pass'];
echo $email;