Network54 Tech Tips
PHP Redirect
Time: February 04 02:23pm


To make a PHP page redirect, use the following code AT THE VERY TOP OF THE PAGE:
NOTE - You can only use this tip on a PHP page. It will not work on an HTML page (like your Network54 Forum). 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 put that code at the top of the entire page. You can put anything you want after it. None of it will show on your page (I use this for pages only I need, so no one else will ever see the content, because you can't view it in a browser).


[ Network 54 Tech Tips ] [ Network 54 Knowledge Base ] [ 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 }
[ Known Browser 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