RE: [PHP] page redirect question
| From: | Zareef Ahmed | Date: | Wed, 10 Nov 2004 04:09:06 +0000 |
| Subject: | RE: [PHP] page redirect question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201647@lists.php.net to get a copy of this message | ||
Hi,
Alas there is no any other way to redirect the page without sending
headers in PHP.
You may use javascript for this purpose.
Well it is matter of programming practice.
We must do processing before presenting the content to users.
It will be helpful in many situations.
So instead of doing
1.Draw header
2. Draw middle bar upon user input and according to business logic.
3. Draw footer
We Must Use
1. Make Business logic and process user input and do required task
such as redirection
2. Store result of step 1 in any entities like variables.
3. Draw Header
4. Make Middle bar using set entities.
5. Draw footer.
This is just a overview of approach. You may need to process more things
along with middle bar, but it is good idea to do logical processing
before presentation.
Zareef Ahmed
-----Original Message-----
From: Victor C. [mailto:cao117@hotmail.com]
Sent: Tuesday, November 09, 2004 9:37 PM
To: php-general@lists.php.net
Subject: [PHP] page redirect question
Hi,
Is there anyway to redirect php page other than using
HEADER("LOCATION:URL") ?
Header can only be called if nothing is written to HTML... Is there
anyway around it?
Thanks,
--
------------------------------------------------------------------------
--
Zareef Ahmed :: A PHP develoepr in Delhi ( India )
Homepage :: http://www.zasaifi.com