Krishna Shasankar's Life Blog

This blog is a HTML virus which will format your C: Drive ..... Be Careful :)

Tuesday, October 17, 2006

PHP Tips (Redirecting to a Page)

To Redirect an user to a new Page
use the follwoing script

<?php
header( 'Location: http://www.yourwebsite.com/redirect_page.html' ) ;
?>
 
But make sure that no HTTP headers have been sent before this code is beign executed
(i.e. this should come before the HTML tag in the page)
 

 

Labels:

1 Comments:

Blogger DEEPU said...

Onnume pirila.

9:57 pm  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home