RE: page redirect question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx] 
Sent: Tuesday, November 09, 2004 9:37 PM
To: php-general@xxxxxxxxxxxxx
Subject:  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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux