Discussion Forums HTML, XML, JavaScript... |
 |
Software Reviews Editors,Others... |
 |
Top100 JavaScript Tutorials, ... |
 |
Tutorials ASP, CSS, Databases... |
Discussion List FAQ, Roundup, Configure ... |
 |
Authoring HTML, JavaScript, CSS... |
 |
Design Layout, Navigation,... |
 |
Graphics Tools, Colors, Images...
|
 |
Software Browsers, Editors, XML...
|
 |
Internet Domains, E-Commerce, ... |
 |
WDVL Resources Intermdiate, Tutorials,... |
 |
WDVL Discussion Lists, Top 100,... |
 |
| Technology Jobs |
 |
|
File|Upload
How can I have a file sent from a HTML form without the user
having to cut & paste the contents into a text field?
You need 'file upload' which is done by using the <INPUT> tag with attribute
TYPE=FILE in a FORM with encoding type set to "multipart/form-data", e.g.
<FORM action = "http://www.server.dom/cgi/handle"
enctype = "multipart/form-data" method="POST">
Filename: <INPUT type="FILE" name="name_of_file"></FORM>
You may find cgi-lib.pl helpful for processing the form; see
See also http://www.w3.org/TR/WD-html40-970708/interact/forms.html#input-types
|
|