// submits page with post silently with response needs 2nd page to work.
var dog = $(this).attr("name"); // this can be anything
// alert(dog);
$.ajax({
type: 'POST',
url: 'sendemail.php',
data: ({
subject: dog,
}),
success: function(msg){
alert('Email Sent' + msg);
}
});
});
});
and the 2nd page (sendemail.php)
I will email you about this soon.