HI , I am using header("Location: http://www.domian.com/url.php"); for forwarding to another page. But I am getting the following error: Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/k/s/kkskrishna/html/dlinks/users/login.php:4) in how can i solve this?
As alternative you echo this: <META HTTP-EQUIV="refresh" content="0;URL=http://www.url.com/"> PHP: However, this genreally results in page flickering before it moves on to the next page. e39m5
<META HTTP-EQUIV="refresh" content="0"URL="http://www.url.com/"> This is the correct code. In php header("Location: http://www.domian.com/url.php"); After this use exit; I hope this will solve your problem
<META HTTP-EQUIV="refresh" content="0"URL="http://www.yoursitename.com/"> write this after the <head> and change the URL to your desired URL ,