Computer Science Canada Modules? |
Author: | JHanson90 [ Sat May 15, 2004 11:53 pm ] |
Post subject: | Modules? |
I've seen URLs like this: http://www.thedomain.com/?page=news or http://www.thedomain.com/index.php?module=news How are those pages made? And what are they? On one of the sites I've seen, the URL would be http://www.site.com/?page=news and it would take you to a page that has navigation menus, a banner, and a news article, and then I typed in http://www.site.com/?page=testingthispage and I got the same exact thing, except the place where the news article was just empty. What is that, and how do I do it? |
Author: | Amailer [ Sun May 16, 2004 8:39 am ] | ||
Post subject: | |||
that can be simply done by including a file if the $module = 'w/e';
and if you go to http://yoursite/index.php?module=news it will display the information in the news.php |
Author: | JHanson90 [ Sun May 16, 2004 5:02 pm ] |
Post subject: | |
Meh I'm such a noob; I should have figured that out myself :-\ Oh well, thanks a bunch |
Author: | JHanson90 [ Sun May 16, 2004 6:22 pm ] | ||||||
Post subject: | |||||||
OK, what I did was have one page, called membersarea.php. I put this code in inside of it:
|
Author: | Amailer [ Sun May 16, 2004 7:08 pm ] | ||||
Post subject: | |||||
is your problem, hmm what exactally are you doing there-- what you did there is.. set $HTTP_GET_VARS['module'] to membersarea.. when you had to do something like this..
hope that helps |
Author: | JHanson90 [ Sun May 16, 2004 7:39 pm ] |
Post subject: | |
Stupidity and ignorance is my strongest area. I'm going to go eat myself. |
Author: | Blade [ Thu May 27, 2004 5:39 pm ] | ||||
Post subject: | |||||
Amailer wrote: that can be simply done by including a file if the $module = 'w/e';
and if you go to http://yoursite/index.php?module=news it will display the information in the news.php wouldn't
be better? ... if he is programmin his own site, then he should know which parameters to put in the links and stuff... this is more dynamic than having 1500 if statements. |
Author: | Amailer [ Thu May 27, 2004 7:02 pm ] |
Post subject: | |
yes, hmm very true *walks away* |