I have two forms ( request and feedback ) for which I want to send the data through jQuery Ajax call.
so if user send request, subject request will be appear. if user send feedback, subject feedback will be appear.
this my code
$("#feedback,#request").click(function() {
$.ajax({
type: "POST",
url: "send.php",
data: "name=" + name + "&email=" + email + "&subject=" + "You Got Feedback from " + name + "&message=" + message,
success: function(data) {
location.reload();
}
});
});
i just wanna change subject, You Got Feedback or You Got Request.
but i don't know how to make it.