Home >> PHP >> What is the difference between GET and POST in PHP

What is the difference between GET and POST in PHP

1-GET Limited data send to server but POST No restriction including uploading files to the server.

2-GET data is visible to everyone in url but POST data is not displayed in the url.

3-GET can be cached but POST can not be cached.

4-GET can be bookmarked but POST can not be bookmarked.

5-GET less secure because data sent is part of url but POST Most secure because parameter not stored in browser history.

6-GET only ASCII character allowed POST no restrictions ASCII character and Binary data allowed

Post Your Comment

Next Questions
What are the different types of errors
If conditional statement
If else conditional statement
If else / else if conditional statement
Switch conditional statement
For loop
While loop
Do while loop
Foreach loop
Operators
Arithmatic operators
Assignment operators
Increment / Decrement Operators
Comparision Operators
Logical operators
Array Operators
String
addcslashes() function
addslashes() function
chunk_split() function
crc32() function
explode() function
implode() function
join() function
ltrim() function

Copyright ©2022 coderraj.com. All Rights Reserved.