- 1
what is post and get
4 Réponses
+ 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.
+ 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.
0
GET is used mainly to request data
POST is used to update data .
0
get l think that the answer