Built with PHP (7.09)
unPOSTer is a tiny API which prevents form reposting on page refresh. It basically stops you from encountering a re-POST alert prompt.
Use your CLI and enter the following to clone:
git clone https://github.com/thielicious/unPOSTer.git
Or click below to choose your download option:
» Download unPOSTer
Then instantiate and embed it at the top of your PHP page.
For a detailed installation click here here.
Create an object :
require_once "unPOSTer.class.php";
$unpost = new unPOSTer("KEEP_POST");
$unpost->unPOST();
For a more detailed documentation visit me at thielicious.github.io
unPOSTer::unPost()
» assigns POST data to the session value and sends it to the header as GET request.
unPOSTer::retrieve("<POST_data>")
» retrieves the session value which actually contains POST data. This will show you the posted content and keeps it.
unPOSTer::reset()
» optional: if you don't want to keep the data, it will clear the session value.
🆕 A Demo has been added to this repository.