Forms - File

Section 1 - Introduction
Section 2 - Basics
Section 3 - Next Level
Section 4 - Advanced
      Forms
         How forms are sent
         Input field
         Buttons
         Input types
         Fieldset
         For more help...
         You try it
      Advanced Tables
      Frames
      Style Sheets
      Image Maps
Section 5 - Publishing
Section 6 - Extras
Appendices
File:
A relatively new type of input allows a user to upload a file along with the form. This is also an input tag. Here's how it looks:

<input type="file" name="upfile">
You probably can't use this yet, but maybe someday you can have users submit pictures or HTML files this way.
Code
<form method="POST" action="mailto:myaddress@mail.com">
<input type="file" name="upfile" size="12"> <br>
<input type="submit" value="Send it"> <br>
<INPUT TYPE=RESET value="Clear it">

</form>
What you see




Go ahead and click on the "Browse..." button. Cool, yeah? Not useful yet, but it could be...
  1. Text
  2. Checkboxes
  3. Radio Buttons
  4. Passwords
  5. Hidden
  6. File
  7. Image
  8. Textarea
  9. Select and Option
Back Home Forward