You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
739 B
PHP
32 lines
739 B
PHP
<?php
|
|
$script = "<script>
|
|
$('#myForm')
|
|
.on('Valid', function (){
|
|
var name = $('input#name').val();
|
|
var email = $('input#email').val();
|
|
var message = $('input#message').val();
|
|
|
|
//Data for Massage
|
|
var dataString = 'name=' + name +
|
|
'&email=' + email +
|
|
'&message=' + message;
|
|
|
|
$.ajax({
|
|
type: \"POST\",
|
|
url: \"scripts/mail.php\",
|
|
data: dataString,
|
|
success: function() {
|
|
$('contactform').html(\"<div id='thenks'></div>\");
|
|
$('#thanks').html(\"<h2>Danke</h2>\")
|
|
.append(\"<p>\" + name + \" wir versuchen dir so schnell wie möglich zu Antworten.</p>\")
|
|
.hide()
|
|
.fadein(1500);
|
|
},
|
|
|
|
}); //ajax call
|
|
|
|
return false;
|
|
})
|
|
</script>";
|
|
$content=renderPage();
|