Re: Redirect upon successful form submission
| From: | Bastien Koert | Date: | Tue, 15 Dec 2009 18:09:18 +0000 |
| Subject: | Re: Redirect upon successful form submission | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46702@lists.php.net to get a copy of this message | ||
On Tue, Dec 15, 2009 at 12:48 PM, Vinay Kannan <vinykan@gmail.com> wrote:
> Hi,
>
> I have 2 pages on php, the first page has a small form to accept a
> membership number from the user, which checks for membership number in the
> DB, if the membership no does not exist, gives an error saying 'you are not
> a member click here to become a member now', this bit works fine.
>
> The problem is the following bit 'if the user is a member, i want the user
> to be directed to another page.
>
> this is what i did to get the result since header("Location:....") wont
> work, as already the form has been printed on the page.
>
> echo'<META HTTP-EQUIV="refresh"
> content="0;URL=member.php">'; but the
> problem is that this takes couple of seconds, till then the page is very
> much visible which doesnt look good.
>
> Any help on this is much appreciated.
>
> Thanks,
> Vinay.
>
What about holding the form in the buffer, and then dealing with the
buffer before sending the form?
--
Bastien
Cat, the other other white meat