What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Help Wanted (how do I do this: page.php?section=something)

PHP Help Wanted (how do I do this: page.php?section=something)
Author: Message:
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: PHP Help Wanted (how do I do this: page.php?section=something)
ive always done it like this:

code:
<?php
$page = htmlentities($_GET['page']) ;
if (!isset($_GET['page'])) {
include ("home.php");
}
else {
$filename = "pages/$page.php";
if (file_exists($filename)) {   
include("pages/$page.php"); }
else {   
echo "Sorry, The Page Cannot Be Found";}
}
?>

06-03-2005 09:35 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 04:41 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by -dt- on 06-03-2005 at 05:06 AM
RE: RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 05:38 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by RaceProUK on 06-03-2005 at 07:09 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by saralk on 06-03-2005 at 09:02 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Yousef on 06-03-2005 at 09:07 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Ezra on 06-03-2005 at 09:13 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Yousef on 06-03-2005 at 09:19 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Ezra on 06-03-2005 at 09:21 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Stigmata on 06-03-2005 at 09:35 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 10:57 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Dempsey on 06-03-2005 at 11:05 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by KeyStorm on 06-03-2005 at 11:21 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 11:23 AM
RE: RE: PHP Help Wanted (how do I do this: page.php?section=something) - by Dempsey on 06-03-2005 at 11:25 AM
RE: RE: RE: PHP Help Wanted (how do I do this: page.php?section=something) - by rav0 on 06-03-2005 at 11:26 AM
RE: PHP Help Wanted (how do I do this: page.php?section=something) - by KeyStorm on 06-03-2005 at 11:33 AM


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