2
views
views
This wikiHow teaches you how to create a basic form to allow users to upload files to your website. You'll need to create two files. The actual upload form will be created using HTML. The PHP file will be a separate file that is referenced in the HTML code. The following scripts do not include any security restrictions. It will allow anybody to upload any file to your server.
Creating the HTML File

Open a Text document. You can use Notepad in Windows, or TextEdit in Mac to write HTML and PHP code.

Save the document as an HTML document. Click "File", then click "Save As" and name the document something like Upload_Form.html. Be sure to add the .html extension at the end of the file name. This will save the file as an html document.

Type the following code. This code tells the web browser that the language we are using is HTML. Click here to learn how to create a basic HTML page.

Create a body for your HTML page. The body is where all the displayable contents for your webpage are written. On a new line, type
after the starting tag. This indicates where the body begins. At the end, you'll use the closing tag to close the body of the document along with the closing tag. Make sure at the end of your HTML file that the closing