/var dataString = '?name='+ name + '&email=' + email + '&text=' + text;
//alert (dataString);return false;
$.ajax({
type: "POST",
url: "process.php",
data: dataString,
success: function() {
$('#kontakt_form').html("<div id='message'></div>");
$('#message').html("<h2>Contact Form Submitted!</h2>")
.append("<p>We will be in touch soon.</p>")
.hide()
.fadeIn(150, function() {
$('#message').append("<img id='checkmark' src='checkmark.png' />");
});
}
});
process.php
<?php
$to = 'mail@mail.pl';
$subject = $_GET['name'];
$message = "Od: ".$_GET['email']."
Treść:
".$_GET['text'];
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
?>
$_GET nie pobiera wartość przesłanej. Gdzie błąd?