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:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: PHP Help Wanted (how do I do this: page.php?section=something)
I use it on my website too, I have it like this

I hope it's secure else tell me how to make it better :D

code:
function pagina ($page){
   $pad = "paginas/".$page.".php";
   if(!file_exists($pad))
   {
      include("paginas/notfound.php");
   }
   else
   {
      include($pad);
   }
}
if(!isset($_GET["pagina"]) OR $_GET["pagina"] == "")
{
   pagina("home");
}
else
{
   pagina($_GET["pagina"]);
}


Edit: Automatic coloring would be nice :P

This post was edited on 06-03-2005 at 09:30 AM by Ezra.
[Image: 1-0.png]
             
06-03-2005 09:21 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