Dear All,
Another simple question:
What is the best way to do redirect after a
php file did some processing?
Any helps would be greatly appreciated!
--Wo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 08 April 2002 22:00, Wo Chang wrote:
Dear All,
Another simple question:
What is the best way to do redirect after a
php file did some processing?
Any helps would be greatly appreciated!
Use header() to set a location.
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
This is really simple:
header(Location: .php);
/Patrick
www.optip.com
-Original Message-
From: Wo Chang [mailto:[EMAIL PROTECTED]]
Sent: 08 April 2002 15:00
To: [EMAIL PROTECTED]
Subject: [PHP] what's the best way to do redirect within PHP
Dear All,
Another simple question
Le lundi 8 avril 2002, à 04:00 PM, Wo Chang a écrit :
What is the best way to do redirect after a
php file did some processing?
Function header() ???
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I believe the questions was after the php file did some processing.
It depends on whether PHP has sent anything to the browser. If you've done
an echo for example, or sent your !DOCTYPE... or HTML and HEAD tags, a
header() redirect won't work. You'll get an error like headers already
5 matches
Mail list logo