RE: [PHP] I don't want multiple form submitted
| From: | John Holmes | Date: | Thu, 26 Sep 2002 23:13:41 +0000 |
| Subject: | RE: [PHP] I don't want multiple form submitted | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117791@lists.php.net to get a copy of this message | ||
> I have a message board written in PHP w/MySQL.
> So when a person submitting a post, it goes to a list_view.
> If this person refresh the list_view.
> The message he submitted will get submitted again.
> How can I avoid this problem?
> Please let me know if you know the answer. Thanks
This question is asked every week, it seems. Best method is to use a
"middle-man". Use a middle page that processes the new post, then
redirects the user to the next page. You can use a PHP header()
solution, or a javascript META-REFRESH method.
---John Holmes...