Network54 Tech Tips
PHP Redirect
Time: September 03 05:10am


To make a PHP page redirect, use the following code:
NOTE - You can only use this tip on a PHP page. It will not work on an HTML page. Also note: Once you add this code to your PHP page, it will instantly redirect. No content from this page will ever be seen in a browser.

<?php
header("location: http://www.network54.com/YOURFORUMID");
?>

Change YOURFORUMID to your forum ID, of course. Also, make sure to use only that code for the entire page. No empty lines at the top or bottom of the code and no HTML.


[ Network 54 Tech Tips ] [ How to post pictures ] [ How to post a link ]
[ Adding a POST button ] [ Adding Content to Different Pages ]
[ PHP Redirect ] [ HTML Redirect ] [ Embed Forum in a Frame ] [ Smiley Generator ]
[ Using Frames with your forum ] [ Using Inline Frames with your forum ] [ Adding Image Maps to your forum ]
[ Adding images to your forum ] [ How to display a visitor's IP address ] [ How to Add Links to your forum ]
[ Adding a Marquee - (Scrolling Text Box) ] [ How to add Simple Scripts ]
[ How to add Sound to your Forum ] [ How to add Animation to your Forum ]
[ Adding a Sticky Message ] [ Adding Tables ] [ Adding Votelet Links ]
[ Adding snow for the holidays }
[ Browser Issues ] [ AOL Issues ]



If you came from a direct link, use the "Back Button".
If you came from a signature link, use "Close This Window".

OZ Website Services Website Services

Valid HTML 4.01 Transitional