File Input Element : File Upload « Development « JavaScript DHTML






File Input Element

<HTML>
<HEAD>
<TITLE>FileUpload Object</TITLE>
</HEAD>
<BODY>
<FORM METHOD="POST" ACTION="yourCGIURL" ENCTYPE="multipart/form-data">
File to be uploaded:
<INPUT TYPE="file" SIZE=40 NAME="fileToGo"><P>
<INPUT TYPE="button" VALUE="View Value" onClick="alert(this.form.fileToGo.value)">
</FORM>
</BODY>
</HTML>



           
       








Related examples in the same category

1.Methods and Properties of the FileUpload Object
2.Viewing File Dates