Upload a file via Ajax using a form with JQuery and PHP


phpguidance

Step1: Create a new file called form_upload.php 

Step2: Include JQuery and the JQuery Form Plugin between the head tags in the form_upload.php file

Step3: Include the following code between the head tags underneath the JQuery Form Plugin include

Step4: Between the body tags we include the actual form and necessary div tags.

Step5: Create a file called upload.php this file will handle all request that are posted via the file upload form. Example of upload.php

        echo '<pre>';
        print_r($_FILES);

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s