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