So i want the user to only be able to upload docs or docx\'s. So first here\'s my html:
Try to use $_FILES["img"] array to access uploaded file properties (your "Select a file" input called "img").
You may use "Location" http header to redirect back to source page.