error_log(print_r($_POST, true)); error_log(print_r($_GET, true));
Put this in a custom error handler and it will write both for you (the "true" parameter makes print_r display text instead of text).
You may need to increase the maximum line length in the error log with log_errors_max_len , since by default it is equal to 1024 characters and will truncate everything after that (it won 't split> 1024 char data across multiple lines).
source share