RE: [PHP] $_POST in header

From: Date: Tue, 18 Nov 2008 14:08:45 +0000
Subject: RE: [PHP] $_POST in header
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-283445@lists.php.net to get a copy of this message
[snip] i have a PHP page with a form. when user click on submit button, it sends form data to itself (so it sends data $_POST to itself). i would like to access to header itself to reset those $_POST data to avoid (in case of F5 under windows system) to resend the same data serveral time. therefore how can i get the header data and change them ?[/snip] That is not really a good way to handle it. Use session data and check if the data exists for the submission...if it does do nothing with the data, if it doesn't you can process normally. And always sanitize user input!

« previous php.general (#283445) next »