How to upload a file

Here are few steps to upload any file using core PHP

step1 : make an input of file type within form body


step 2: add a submit button within form body

Note: make sure that encryption type enctype=”multipart/form-data” should be the part of form definition.

step 3: now you have to handle POSt veriables received when user will press submit
I suggest, you should handle it above HTML tags

Download the code

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.