what is post and get | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

what is post and get

22nd Oct 2016, 5:13 PM
Mustafa Fawzi
Mustafa Fawzi - avatar
4 Answers
+ 1
We use $_POST when we want to get data that has been submitted using forums. And we use $_GET when we want to extract data form query string. We can also use $_GET to store data from the form but it is not secure since it is visible in URL string.
27th Dec 2016, 3:36 AM
Raniket Ram
Raniket Ram - avatar
+ 1
Its simple bro, when you are submitting the data from input field if it is not confidential like "username" then you will use GET, and if you are submitting some private information like "password" then you have to use POST method. Note : using GET method will reflect your input field data in URL unlike not in POST method, That's Post is safer then Get method.
1st Jan 2017, 7:54 PM
Javed Saifi
Javed Saifi - avatar
0
GET is used mainly to request data POST is used to update data .
25th Oct 2016, 3:06 PM
K.Srihari
K.Srihari - avatar
0
get l think that the answer
7th Nov 2016, 3:10 PM
Emmanuel
Emmanuel - avatar