How to use File Input in HTML

In this article we will discuss about how to use the File Input in HTML.
  • 1199

In HTML another type of input mode is available .i.e. file. Through this input mode we can include entire file of our system while submitting the form in HTML. The file may include Text File, Image File or other kind of file. We have to decide the server-side scripting actions while uploading the file during form submission in HTML.

HTML Code:

<html>

<form method="post">

<p>

    Type some text (if you like):<br>

    <input type="text" name="textline" size="30">

</p>

<p>

    Please specify a file, or a set of files:<br>

    <input type="file" name="datafile" size="40">

</p>

<div>

    <input type="submit" value="Send">

</div>

</form>

</html>

 

Output:
 Image19.jpg

Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2013 dotNetheaven. All rights reserved.