Properly separate the HTTP GET requests from the POST requests
[Project_webapp.git] / lib / utils.php
CommitLineData
6405835a
JB
1<?php
2function isPostRequest() {
3 if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') {
4 return true;
5 } else {
6 return false;
7 }
8}
9?>