RE: [PHP] Quick Question
| From: | John W. Holmes | Date: | Tue, 06 May 2003 23:16:03 +0000 |
| Subject: | RE: [PHP] Quick Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146594@lists.php.net to get a copy of this message | ||
> I have a quick question. Currently, I have a form embedded in some
html
> code
> that goes to another page when the user clicks submit. On this other
page,
> I
> update the database and perform some other operations. When I am done
on
> this page, how do I get back to original form page so the user can
fill
> out
> another form.
You can use header() to redirect back to the form page after your
processing, so long as there's no output. This is actually the best
method to use, as a refresh of the form will not resubmit your data.
You'll be saving yourself from that headache later on. :)
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/