GetPOST: Show request variables

A script to display GET and POST variables. For php.


getPOST is a script to display GET and POST request variables. It is all in one single php file.

This script is useful when for some reason you want to have a nice listing of GET or POST-variables (or both). This list will include "hidden" POST variables.

Using a browser plug-in/add-on you may eg. re-direct some form in another web page to use this script in stead, by changing the "form action" value. That way you will get a complete listing of all form fields without having to read source code and without having to figure out eg. the current values for javascipt generated form values.


Current version

The current version is: 1

Technical information

The whole script is in one single php file named "getpost_", followed by a version number, and terminated with the suffix ".php". Example: "getpost_1.php".

The script can be used as a "stand alone" web page, or included in an existing page using include_once('getpost_1.php');

Per default the script will output a full html page, including html "head" and "body" tags. If used as an include in another page these tags can be turned off very easily: just set "$setting_no_wrap" to the value "1".


This script works with PHP versions 5 and 7.

To use the script, the only requirement is a browser that can render html. Any browser, that is.


To customize the software you will need a text editor. A developer may find it nice to know some php, html, javascript, css. Feel free to rename the file in any way that suits your preferences.

Try it


Install and uninstall

To install the software, (edit and) upload the script file to your web server.

To uninstall the software, just delete the file.

It's easy.

Source Code and Download

Source code

Please click the "download" link below and the full script will be visible as a plain text file.


IMPORTANT: After the download, rename the file to "getpost.php" in order to use it. The ".php" extension is the important part; feel free to choose any other file name if that suits you better, just make sure that the extension is ".php".

The extra ".txt" filetype extension was set to enable you to view the source code, it will not work in php.


All download, use, and modification of this script is subject to the W?F! license. By downloading, using, or modifying this software you declare your acceptance of all license terms.