Get the App
SLTechnology News&Howtos  ›  Development  › 

How to submit pictures and upload and display pictures by AjaxForm in PHP

Shulou Source: shulou.com Published: 2022-06-03 20:19:47 10月06日 Update

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!

Tags: Pictures documents content articles learning help size easy to understand more organization source code knowledge editing industry information information channels channels research selection restrictions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Huawei Shulou Information Xiaomi Apple