Type <form method="post" enctype="multipart/form-data". The enctype attribute ensures that the file is uploaded in the proper format.
Next, type action= "upload.url">, where upload.url is the URL of the script that processes incoming files. You'll need a special script for this.
Type the caption for the file upload area so your visitors know what to do. Something like What file would you like to upload? would work well.
Type <input type="file" to create a file upload box and a Browse button.
Type name="title", where title identifies to the server the files being uploaded.
If desired, type size="n", where n is the width, in characters, of the field in which the visitor will enter the path and file name.
Type the final />.
Complete the form as usual, including the submit button and final </form>
Figure 17.38. When you create a file upload area, both a field where the visitor can type the path to the file and a Browse button (so the visitor can use an Open dialog box to choose the file) automatically appear on your page.