<! DOCTYPE html>
<body>
<form action= "/example/html5/demo_form.asp" method= "Get" >
Select Image: <input type= "file" Name= "img" multiple= "multiple"/>
<input type= "Submit"/>
</form>
<p> try selecting more than one file while browsing the file. </p>
</body>
The browser uses the method property setting to route data from the form to the server for processing. There are two methods: the POST method and the GET method.
If the POST method is used, the browser will send the data in the following two steps. First, the browser will contact the form processing server specified in the Action property, and once the connection is established, the browser will send the data to the server in a segmented transfer.
On the server side, once the POST-style application starts executing, the parameters should be read from a flag location, and once the parameters are read, the parameters must be decoded before the application can use the form values. User-specific servers explicitly specify how the application should accept these parameters.
Another scenario is when a GET method is used, where the browser establishes a connection to the form processing server and then sends all the form data directly in a single transport step: The browser will attach the data directly to the action URL of the form. The two are separated by a question mark.
General browsers can transmit form information through either of these methods, whereas some servers only accept data provided by one of these methods. You can specify in the method property of the <form> tag how the form processing server will handle the data using the method to make the POST or GET.
Upload image HTML <form> Tag Method property