Re: How to prevent re-entry of data upon page refresh?
| From: | Justin French | Date: | Fri, 21 Mar 2003 10:09:22 +0000 |
| Subject: | Re: How to prevent re-entry of data upon page refresh? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140568@lists.php.net to get a copy of this message | ||
Hi,
Instead of the usual flow chart of form.php -> process.php, where
process.php displays a "thankyou" message afterwards, change it to:
from.php <-> process.php -> thanks.php
process.php doesn't echo anything out to the browser at all... it validates
your form data, and depending on what happens there, it will use a header()
redirect to send the user back to the form, or forward to the thanks.php
page.
in practice, all three actions (form, process, thanks) can all happen within
one PHP script, but i split it into 3 for clarity.
justin
on 21/03/03 8:56 PM, WMB (wmb@euronet.nl) wrote:
> Am using dreamweaver and hv an entry form on a page, which works fine,
> unfortunately upon page
> refresh the data gets entered another time and another time again on
> refresh.
> Any solutions on this?
>
> Thanks,
> Martin
>
>
>
>