<class home>  <forms>   <back   next>

File Fields

File Fields allow users to upload files. It commonly uses a complex CGI script.
*note: you can't use the "get" method when you choose to do uploading.


ex.
What file would you like to upload?


To make a file field: Dreamweaver

1. Put your cursor where you want it in the document window.

2. Select Insert>form object>File Field from the main menu.
Or click on the form button in the object panel: form section:

3. In the Properties panel:
-name your file field
-enter character width and max characters options if you desire.


In HTML

Type in:


ex.

What file would you like to upload?

Type the following to get the above:

<form name="upload" method="post" action="upload.cgi" enctype="multipart/form-data">
What file would you like to upload?
<p>
<input type="file" name="upload">
</p>
</form>