Re: Redirecting a page?
[email protected] (cybot) Fri, 31 Jan 2003 15:25:21 +0100
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
as long as no header is sent you could user header('Location: blah')
if header already sent you can use some simple javascript:
echo "<script language='javascript'>window.location.ref = 'blah'</script>"
code above is not fully correct check manuals for header() and javascript!
Roel S.F. Abspoel wrote:
> If after execution of some code i want to redirect to a different page
> instead, how do i do this?
> As long as no header is send i could use include "mypage.php" but i want to
> redirect, not include.. any ideas?
>
>
> --
>
> Met vriendelijke groet,
>
> Roel S.F. Abspoel
>
>
>
--
Sebastian Mendel
[email protected]
www.sebastianmendel.de
www.tekkno4u.de
www.nofetish.com