what is tag of method attribute | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is tag of method attribute

for knonledge

6th Jul 2017, 9:24 AM
Aman Rajput
Aman Rajput - avatar
2 Answers
6th Jul 2017, 9:29 AM
Maz
Maz - avatar
0
method attribute is used in the <form> tag. It can be "post" or "get", that defines the type (or method) for submit data. Post method is used to submit secret data, like passwords. Get method is used to submit data via URL; for example: www.example.com/first.php?name=John&age=30 ^ ^ for more data here data begins The data will be collected by the php superglobals $_POST['nameOfVariable'] and $_GET['nameOfVariable']
6th Jul 2017, 12:45 PM
Andrés04_ve
Andrés04_ve - avatar