Page 1 of 1

How to redirect in the middle of the page

Posted: Wed Jun 04, 2003 2:05 am
by detrox
header("Location: url"); can be only used when no output occurred.But if i wanna redirect a page when there are something has already been output how can i do that?

Posted: Wed Jun 04, 2003 2:11 am
by []InTeR[]
Output some javascript.

Code: Select all

document.location = 'url';

Posted: Wed Jun 04, 2003 2:30 am
by detrox
Thanks