Network54 Tech Tips
PHP Redirect
Time: March 11 05:32pm


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 ] [ Adding a POST button ] [ Adding Content to Different Pages ]
[ Adding snow for the holidays }
[ 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 ]
[ Adding a Sticky Message ] [ Adding Tables ] [ Adding Votelet Links ]
[ Browser Issues ] [ AOL Issues ]
[ How to post pictures ] [ How to post a link ]



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