How to submit pictures and upload and display pictures by AjaxForm in PHP
This article mainly shows you the "PHP AjaxForm how to submit pictures and upload and display pictures", the content is easy to understand, well-organized, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to submit pictures in PHP AjaxForm upload and display pictures" this article.
The details are as follows
PHP dofile.php file upload source code
HTML is as follows
File: $("# upfileimage") .submit (function () {if ($("input [type=file]"). Val () = "") {alert ("Please select a file to upload"; return false;}}) $(function () {var options = {type: "POST", dataType: "json", resetForm:true, success:function (o) {if (o.status==1) {alert (o.msg)) } else {$("body") .append
");}}, error:function (o) {alert (o.message);} $(" # upfileimage ") .ajaxForm (options) .submit (function () {return false;});}) these are all the contents of the article" how to upload and display pictures in PHP ". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!