Jika jenis permintaan adalah posting

$_SERVER['REQUEST_METHOD']
// e.g 
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
     // The request is using the POST method
}
Literate Lentil