I want to know that what is difference between action tag in form html and header.filenane in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I want to know that what is difference between action tag in form html and header.filenane in html

What would happen if I write header.fikenane in form element and not write action. I want to know the difference between action and header.filename . Please help me

31st Mar 2020, 2:10 AM
Prateek Pandey
Prateek Pandey - avatar
2 Answers
+ 2
The HTML action Attribute is used to specify where the formdata is to be sent to the server after submission of the form. It can be used in the <form> element. In a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected to be displayed inline in the browser, that is, as a Web page or as part of a Web page, or as an attachment, that is downloaded and saved locally. Content-Disposition: inline Content-Disposition: attachment Content-Disposition: attachment; filename="filename.jpg"
15th Apr 2020, 10:08 PM
cmcodes
cmcodes - avatar
+ 1
Use action if you're working in HTML. Use Header if you're working in PHP.
15th Apr 2020, 10:08 PM
cmcodes
cmcodes - avatar