To send the form-data as an HTTP post transaction, the method attribute should be set to ______.

  • fetch 
  • get 
  • post 
  • put 
The "method" attribute of the

element specifies how to send form data to the server. When set to "post", the form data is sent as the HTTP post transaction, which means the data is included in the body of the form submission. The "post" method is preferred when the form is submitting sensitive or large amounts of data because it's more secure and doesn't append data to the URL like "get" does. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *