V
V
Vita2017-03-09 13:01:22
JavaScript
Vita, 2017-03-09 13:01:22

If there is an already created form, how to write a script for it to send data to the mail?

If there is an already created form, how to write a script for it to send data to the mail? Maybe someone can give an example. I will be very grateful!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
k0nsu1, 2017-03-09
@k0nsu1

vardata = $('.form').serialize();
$.ajax({
url: '/url.php',
type: 'POST',
data: data,
success: function(answer){
alert(answer);
}
});

D
Dmitry Khristoev, 2017-03-09
@Haoss

https://www.youtube.com/watch?v=0bexJuzHFRo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question