Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

redirect

can you explain how to redirect to another page in php or by using java script.
i tried with header('location:url') but its not working out.
[154 byte] By [sadhana] at [2007-11-11 10:09:29]
# 1 Re: redirect
Read the manual. Header works. However, you have to have it in the first line of your php code, before any other output is sent to the client.

http://www.addedworth.com/php/index.php?t=PHP_HEADERS

As an alternative, you could try the META REFRESH TAG.
SpinCode at 2007-11-11 23:34:28 >