0

The use of GET and POST methods on HTML form

Well I'm wondering what's the use of GET and POST methods if you enter the input type as "password" then it will switch automatically into post method? Did I miss something here? If I did, please tell me Thanks

23rd Dec 2016, 7:16 AM
Kartika
5 Réponses
+ 4
The other way around, you put the method when you declare the form, not the imputs. And no, they don't affect your form structure, its exactly the same for both!
23rd Dec 2016, 7:48 AM
Nahuel
Nahuel - avatar
+ 3
No, you must declare what method you want your form to be sended. <form name = "blabla" method="GET"> {inputs here} </form> or method="POST"... By default, its GET
23rd Dec 2016, 7:27 AM
Nahuel
Nahuel - avatar
+ 2
I don't get it what you mean with otherwise. No problem!
23rd Dec 2016, 8:22 AM
Nahuel
Nahuel - avatar
+ 1
@NahuelOvajero so I guess what differs them is the get/post is how your form going to be sent but doesn't affect how your form going to be wrote while the input type is the one which is really influence how your text going to look directly on the form, no? Should I put get/post before input type? Or it's other way round?
23rd Dec 2016, 7:45 AM
Kartika
0
@NahuelOvejero alright I get it, mate thanks! But I wonder what would happen if I do the otherwise. I really appreciate your help, anyways!
23rd Dec 2016, 8:09 AM
Kartika