0

Differences between GET and POST methods ?

28th Nov 2016, 3:11 PM
Gaurav Kumar
Gaurav Kumar - avatar
2 ответов
+ 2
POST and GET are two HTTP request methods. GET is usually intended to retrieve some data, and is expected to be idempotent (repeating the query does not have any side-effects) and can only send limited amounts of parameter data to the server.
28th Nov 2016, 5:14 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
+ 1
GET values are posted via URL (http://some.com/?p1=3&p2=test) ... $_GET['p1'] == 3 and $_GET['p2'] == 'test' ... POST is posted inside the requests (so is invisible in URL) and you can access it just as GET only using $_POST global variable.
28th Nov 2016, 3:19 PM
Ondřej Doněk
Ondřej Doněk - avatar