When I use POST
and GET
requests at the same time, the $_SERVER['REQUEST_METHOD']
is set to just POST.
Why is this? Is it because all requests are considered GET
in any case?
This is the request I made for the purpose of this question.
a = $("#AdminAddForm").serialize();
jQuery.post('index.php?test=yes', a);
Both $_POST and $_GET are populated after this request, and $_SERVER['REQUEST_METHOD'] set to POST.