You are here: Re: How do I redirect after loading page content? « PHP Programming Language « IT news, forums, messages
Re: How do I redirect after loading page content?

Posted by Puckdropper on 10/23/07 04:06

Jerry Stuckle <jstucklex@attglobal.net> wrote in
news:ndSdnS3g5OGE1YDanZ2dnUVZ_qLinZ2d@comcast.com:

> Kevin Audleman wrote:
>> I understand how to use the header command to redirect a page before
>> any HTML has been loaded.However, I need to redirect after some HTML
>> has already been loaded. is there a command that will allow me to do
>> this?
>>
>> Thanks,
>> Kevin
>>
>>
>
> Kevin,
>
> No - it's not PHP, but the HTTP protocol which prohibits it. You can
> send a redirect, or you can send a page. But you can't send both.
>
> But why would you want to? If you could redirect after sending
> something, your users wouldn't seen the contents of the first page.
>
> Rather, you should decide if you need to redirect before sending any
> output, then take the appropriate action.
>

You can DELAY the redirect, however. I get the feeling that you want to
display a "Redirecting, please wait" type message, which can display
after the redirect info has been sent.

Puckdropper
--
Wise is the man who attempts to answer his question before asking it.

To email me directly, send a message to puckdropper (at) fastmail.fm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация