How to Upload file using jQuery Ajax PHP Example 1: Single file upload using jQuery and Ajax Step 1: Create Html Form <form id="data" method="post" enctype="multipart/form-data"> <label>First Name :</label><input type="text" name="firstname" value="" /> <label>Last Name :</label><input type="text" name="lastname" value="" /> <label>Email :</label><input type="email" name="email" value="" /> <label>Contact Number :</label><input type="text" name="phone" value="" /> <label>Upload Profile :</label><input name="image" type="file" /> <input type="submit" value="Submit" /> </form> Step 2: Now create javascript for file uploading <script> $...
Coding Cheatsheets - Learn web development code and tutorials for Software developers which will helps you in project. Get help on JavaScript, PHP, XML, and more.