|
Posted by Jerry Stuckle on 10/23/07 01:02
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.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|