What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » /?id=home

/?id=home
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
35 / Male / Flag
Joined: Mar 2004
RE: /?id=home
quote:
Originally posted by Absorbation

<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$id){ $id = $HTTP_GET_VARS['id']; }

if($id=="" or $id=="home"){
include("home.php");
}elseif($id=="asmiles"){
include("animatedsmiles/index.php");
}elseif($id=="backgrounds"){
include("backgrounds/index.php");
}elseif($id=="downloads"){
include("downloads/pafiledb.php");
}elseif($id=="dp"){
include("dp/index.php");
}elseif($id=="names"){
include("names/index.php");
}elseif($id=="smiles"){
include("smiles/index.php");
}elseif($id=="web"){
include("web.php");
}
?>
why not do
if(!$id){ $id = $HTTP_GET_VARS['id']; }
to
if(isset($_GET['id'])){ $id = $_GET['id']; }else { $id=''}


insted of changing error_reporting and removing notices , just fix your code.
A NOTICE == BAD CODE.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
12-21-2005 03:54 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
/?id=home - by stoshrocket on 12-20-2005 at 10:54 PM
RE: /?id=home - by ShawnZ on 12-20-2005 at 10:58 PM
RE: /?id=home - by CookieRevised on 12-20-2005 at 11:12 PM
RE: /?id=home - by ShawnZ on 12-20-2005 at 11:59 PM
RE: /?id=home - by CookieRevised on 12-21-2005 at 12:10 AM
RE: /?id=home - by ShawnZ on 12-21-2005 at 12:22 AM
RE: /?id=home - by surfichris on 12-21-2005 at 12:23 AM
RE: RE: /?id=home - by CookieRevised on 12-21-2005 at 12:35 AM
RE: /?id=home - by ShawnZ on 12-21-2005 at 12:36 AM
RE: /?id=home - by surfichris on 12-21-2005 at 12:40 AM
RE: /?id=home - by CookieRevised on 12-21-2005 at 12:55 AM
RE: /?id=home - by rav0 on 12-21-2005 at 08:35 AM
RE: /?id=home - by Stigmata on 12-21-2005 at 09:50 AM
RE: /?id=home - by absorbation on 12-21-2005 at 02:12 PM
RE: /?id=home - by hmaster on 12-21-2005 at 02:39 PM
RE: /?id=home - by stoshrocket on 12-21-2005 at 03:32 PM
RE: /?id=home - by absorbation on 12-21-2005 at 03:36 PM
RE: /?id=home - by stoshrocket on 12-21-2005 at 03:40 PM
RE: /?id=home - by -dt- on 12-21-2005 at 03:54 PM
RE: /?id=home - by stoshrocket on 12-21-2005 at 09:15 PM
RE: /?id=home - by absorbation on 12-21-2005 at 09:19 PM
RE: /?id=home - by stoshrocket on 12-21-2005 at 09:22 PM
RE: /?id=home - by absorbation on 12-21-2005 at 09:24 PM
RE: /?id=home - by stoshrocket on 12-21-2005 at 09:29 PM
RE: /?id=home - by absorbation on 12-21-2005 at 09:31 PM
RE: /?id=home - by stoshrocket on 12-21-2005 at 09:34 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On