DBGTN.com Version 8.0
Members Login:
Username:
Password:
[ Forgot Password? - Register ]
Latest Additions:
 - 02.15.03 - Absorption
 - 12.09.02 - Animation Cels
 - 11.05.02 - DBGTN Store
 - 10.25.02 - Screen Caps.
 - 10.21.02 - New Layout
Site Features:
 - DBGTN Anime Search!
 - DBGTN Membership
 - DBGTN Mini Board
 - DBGTN Store
 - DBGTN Top 100
 12 Users online
 Total Members
 Registered: 427
 Members Online: 3
 Member Stats
 Your User ID#:
 209.237.238.164

 · Navigation Menu
 - Current News
 - General Info.
 - Dragon Ball
 - Dragon Ball Z
 - Dragon Ball GT
 - Multimedia
 - Interaction
 - Fan Files
 - Humor
 - Webmasters
 - The Community

 · The U.S. of A.




 · Random Pic


[ Cels : Images ]


 · Site of the Moment


[ The Community ]


 · Topsites / Vote


------------
Click Here to Visit!


 · AniB. Newsletter

Email Address:

Subscribe
Unsubscribe




 · DBGT NETWORK

• Tutorials: PHP: Making a default page

Ever wondered how we make our site automatically load our news page when you go to "dbgtn.com/index.php" ? How can this be possible without calling the page("dbgtn.com/index.php?id=page")? I'll answer those questions in this tutorial, it's quite easy to learn too.

Since we're using my site as an example i'll show you guys how to load "news.html" as your default.
First off you should know that when you see the text "news" below it basically means news.html so you should replace it with whatever you're using(home.html, main.html, news.txt, e.t.c.
Another thing you need to change is "dbgt" with whatever you're using like "id=", "tag=", "page=", e.t.c.

<?php
if(!$dbgt || $dbgt == ""){$dbgt = "news";} ?>
<?php include("$dbgt.html"); ?>

The first part of the script checks for the tag, in this case being "dbgt", if it is blank or is not called for when a visitor goes to index.php it replaces it with the default page being "news". Otherwise it will leave it alone.







 · View Layout..?

 · Voting Poll



 · Product Spotlight


Dragon Ball Z:Kid Buu - Regression DVD
Price: $18.71
[ - BUY NOW! - ]
Browse Catalog

 · DBGTN Friends
 - DB Menace
 - DB-Unlimited
 - DBZ Circuit
 - DBZGT Legacy
 - DBZ Network
 - Kame-House
 - KN Vegeta
 - SaiyanChronicles
 - Saiyanz Rage
 - The Cell Game


[ Home - Staff Login - FAQs - Link Us - Contact - Privacy Policy - Terms of Use - Copyright - Viewing - Statistics ]

Dragon Ball, Dragon Ball Z, and Dragon Ball GT © 2002 BIRD STUDIO/ SHUEISHA, TOEI ANIMATION. Licensed by FUNimation® Productions, Ltd. All Rights Reserved. Dragon Ball, Dragon Ball Z, and Dragon Ball GT and all logos, character names and distinctive likenesses thereof are trademarks of TOEI ANIMATION. All information on this web site is solely for DBGTN.com unless otherwise stated. Not to be mistaken for the official site, DBGTN.com is strictly a fan site where by no infringement is intended.
Page loaded in 0.142343 seconds.