So when we type <input type="text"/> it's automatically using GET and when we use <input type="password"/> it's automatically a POST? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

So when we type <input type="text"/> it's automatically using GET and when we use <input type="password"/> it's automatically a POST?

29th Oct 2016, 11:38 PM
May Rose
May Rose - avatar
3 Answers
+ 8
First you made a mistake we don't use the / to end input ok? Second POST or GET programmed automatically by the browser for any FORM. and we tell those methods by PHP or JAVASCRIPT it means when you submit form you can use get or post as you want for any input
1st Nov 2016, 1:44 AM
Driss Baidou
Driss Baidou - avatar
+ 1
Thank you :)
2nd Nov 2016, 1:23 AM
May Rose
May Rose - avatar
0
No, you should add it behind
30th Oct 2016, 5:30 AM
Poh ChooHan
Poh ChooHan - avatar