Datenvalidierung von $ _post in PHP

<?php
	
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
	
		// the request method is fine

} else {

	exit('Invalid Request');

}
Colorful Cowfish