How do I check if the TYPE
used in an AJAX
call is POST
or GET
in my php page/server side?
Just try with:
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
// POST
} else {
// GET
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments