Question : data validation of $_POST in php
Answered by : colorful-cowfish-dakv9ssvfhn6
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') { // the request method is fine
} else { exit('Invalid Request');
}
Source : https://supunkavinda.blog/php/input-validation-with-php | Last Update : Mon, 08 Feb 21