Hello guys
I am using IE6.0 and I am running into a small problem.
I wrote a simple form in page.php:
<?php
if (isset($_POST['txt'])) {
echo 'txt is already set<br>';
}
?>
<form name='x' method='post' action='page.php'>
<input type='text' name='txt'>
<input type='submit' value='go'>
</form>
Note that I am using post as the method
Also note that I am sending the information to the same page.
For some reason (and maybe this is the right behaviour), when I refresh this page, I always get the line: "txt is already set" printed.
Doesn't the browser clean up all the $POST keys when the page is reloaded? If not, how do I cause it to do it?
The same behaviour happens when I go from page.php to another page and clicks 'back' in the browser.
Is there a way to cause the browser to start the page with a clean $POST array?
Note the since the form sends the info to the same page there is a case where I need those keys in the $_POST array.
thanks in advance and sorry about the lack of browser-related knowledge.