Skip to content

Instantly share code, notes, and snippets.

@sergiolopes
Created May 28, 2012 19:01
Show Gist options
  • Save sergiolopes/2820676 to your computer and use it in GitHub Desktop.
Save sergiolopes/2820676 to your computer and use it in GitHub Desktop.
Página simples em PHP que mostra os parâmetros recebidos
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h1>Você enviou seu formulário com sucesso!</h1>
<h3>Dados recebidos no servidor:</h3>
<pre>
<?php
foreach($_GET as $name => $value) {
print " $name: $value\n";
}
foreach($_POST as $name => $value) {
print " $name: $value\n";
}
?>
</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment