How to handle the POST data

From: Koala Yeung (perlkoala_at_hotmail.com)
Date: 11/10/03


To: <php-general@lists.php.net>
Date: Tue, 11 Nov 2003 03:05:23 +0800

I wrote a discussion board in PHP recently
The board consis of three php files: forum.php, readforum.php,
writeforum.php
In my design,
- The writeforum.php file will generate a form.
- Once user submit the form, it return a new thread in POST to the
forum.php.
- The forum.php will receive the data and process them, afterward
- The forum.php (ALSO) will generate an index table of it.

The problem is: right after a submit process, POSTDATA still stored in the
user's browser.
When one submit a thread, read the index table of forum.php, and press
"Reflash",
the browser will give a message like:
  "The page you are browsing contains POSTDATA.
   If you Re-submit the information, the webpage will do the action
again..."

What can I do?



Relevant Pages

  • Re: back-button question
    ... The general rule is to create or maintain every page on your server of what you what the client to see. ... That way you don't have to worry about satisfying every browser and configuration there is. ... some session variables and outputs a location header to return to b. ... how my bookstore website will react to random events from the user while in a middle of a series of php files that i want to act as a transaction. ...
    (php.general)
  • Re: PHP was working, now after loading PHPEclipse, it doesnt
    ... The funny thing is that php files CAN be opened in the embedded browser that is contained within the Eclipse IDE. ... Tees Close, Witham, Essex. ...
    (comp.lang.php)
  • Re: installing additional packages caused problem with browsing .php pages
    ... I installed a number of PHP-related additional packages and now I cannot ... open .php files in my browser. ... probably by getting the MIME configuration ...
    (comp.lang.php)
  • PHP was working, now after loading PHPEclipse, it doesnt
    ... I can no longer open php files in the ... browser - I simply get a white page - no errors. ... The funny thing is ...
    (comp.lang.php)