Page 1 of 1

how to go to a different page?

Posted: Thu Aug 18, 2005 4:49 am
by saumya
how can i send the users to another page from my php code.I use html headers to send them to different pages.But is it possible through php?

Posted: Thu Aug 18, 2005 4:56 am
by shiznatix

Code: Select all

header("Location: http://www.otherpage.com");

Posted: Thu Aug 18, 2005 5:15 am
by saumya
thanks a lot buddy.

Posted: Thu Aug 18, 2005 6:05 am
by raghavan20
if you can not get the header statement on top of the page with no blanks or echo stmts, it would be useful if you use this for time being.

Code: Select all

echo "<script>window.location=\"hello.php\"</script>"