Skip to content

Instantly share code, notes, and snippets.

@chrismear
Created September 15, 2009 12:15
Show Gist options
  • Save chrismear/187246 to your computer and use it in GitHub Desktop.
Save chrismear/187246 to your computer and use it in GitHub Desktop.
<pre>
<?php
echo("POST variables:\n");
print_r($_POST);
echo("\nGET variables:\n");
print_r($_GET);
if ( $_SERVER['REQUEST_METHOD'] === 'POST' )
{
echo("Raw POST:\n");
echo(trim(file_get_contents('php://input')));
}
?>
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment