Good day to all!
The question is: there is an html page. There is a form for sending data on it, loading and uploading a csv file and loading the archive.
The csv stores email addresses. Archive - attachment to the letter.
The form is processed by the jQuery script (jQuery Form library):
$(document).ready(function(){ $("form").submit(function(){ var options = { url: 'sent.php', dataType: 'html', status: $(".result").html('<img src="spinner.gif" width="16" height="16" />'), type: 'POST', success: function(msg){ $(".result").append(msg); } }; $(this).ajaxSubmit(options); return false; }) });
I really want PHP to give, and JS to process what is given, like: "File uploaded", "sending to% email_address% ... OK!" etc.
But I understand that JS responds to the server response.
How to make it dynamic and dynamically displayed data?