Wednesday, 20 January 2016

Sending Form Data to the Server

The method attribute can take one of two values, either get or post, corresponding to the HTTP methods used to send the form data. If the <form> element does not carry a method attribute, then by default the get method will be used. If you are using a file upload form control, you must choose the post method (and you must set the enctype attribute to have a value of multipart/form-data).

0 comments:

Post a Comment