|
-
November 15th, 2004, 02:48 PM
#1
Can I clear $_POST superglobal?
Hi
I wonder whether there is a way to clear the $_POST superglobal array or even set an array element to a new value.
I've got a self-referencing form where the user can enter some text and that is calling itself. I decide whether the page was initially displayed by something like this:
Code:
if ( (isset($_POST["Submit"]) == TRUE) && ($_POST["Submit"] = 'Say') )
But once the user has submitted the form, $_POST["Submit"] will still be set when the page is reloaded (without pressing the submit button).
Is there a straigtforward way to clear or somehow modify the superglobal to prevent resubmit on reload? As you might expect, unset($_POST["Submit"]) or $_POST["Submit"]='none' does not work...
Thank you in advance
Oliver.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|