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)
 

 

One Response to “PHP Tips (Redirecting to a Page)”

  1. DEEPU Says:

    Onnume pirila.


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>