<?php print_r($_SERVER['REQUEST_METHOD']); die; if($_SERVER['REQUEST_METHOD'] != 'POST') { include error(403); die; } ob_start(); print_r($_POST); file_put_contents('/tmp/log.txt', ob_get_contents(), FILE_APPEND); ob_end_clean();