Home › Forums › Back End › Contact Me PHP Help › Reply To: Contact Me PHP Help
September 23, 2014 at 12:09 am
#184186
Participant
So I need to add this in my html?
<script>
$(function () {
$('form').on('submit', function (e) {
e.preventDefault();
$.ajax({
type: 'post',
url: 'contact.php',
data: $('form').serialize(),
success: function () {
alert('Your message has been sent. Thank you for contacting.');
}
});
});
});
</script>