Uploading a File from a Form

You may need to add a file field to your form that enables users to upload files. You can collect images, homework assignments, or any types of files that you may need sent to you with a file field object. The user selects the Browse button, shown in Figure 20.7, to select a file from their local drive. When they press the Submit button, the file is sent to the server.

Figure 20.7. Use a file field to enable a user to upload a file to the server. However, make sure your server allows it before you create your form.

A file field has attributes similar to a text field, which you used in the last hour. You can set the ...

Get Sams Teach Yourself Macromedia® Dreamweaver® MX in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.