Difference between get() and post() method in PHP

Closed
debasis_1975 Posts 1 Registration date Monday February 1, 2016 Status Member Last seen February 1, 2016 - Feb 1, 2016 at 08:19 AM
Tabeer Posts 63 Registration date Thursday December 3, 2015 Status Member Last seen December 26, 2016 - Feb 2, 2016 at 02:58 PM
what is the main difference between get() and post() method in PHP

1 response

BunoCS Posts 15495 Registration date Monday July 11, 2005 Status Moderator Last seen October 23, 2024 1,533
Feb 1, 2016 at 10:18 AM
Hello,

There are no
get()
or
post()
method in PHP.
Do you mean GET and POST HTTP request?
http://www.tutorialspoint.com/php/php_get_post.htm
0
Tabeer Posts 63 Registration date Thursday December 3, 2015 Status Member Last seen December 26, 2016 23
Feb 2, 2016 at 02:58 PM
GET()

Parameters remain in browser history because they are part of the URL
Can be bookmarked.
GET method should not be used when sending passwords or other sensitive information.
7607 character maximum size.
Url example: page2.php?category=sport
POST()

Parameters are not saved in browser history.
Can not be bookmarked.
POST method used when sending passwords or other sensitive information.
8 Mb max size for the POST method.
0