Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: sorry cant think of a title :S
05-16-2004, 12:40 PM #1
- Join Date
- Apr 2004
- Thanked 0 Times in 0 Posts
sorry cant think of a title :S
Ok i have a problem with php , well no so much a problem but something that needs fixing
I want to have a index.php page, from this page i want to link to other pages usign one other file called module.php....
from index.php i want to link to other pages with something like
from the module file i can link the REQUEST or the GET variable which ever one i dont know, to one other paticular file depending on what the site variable is set as in the link !!
Am i making sense??
here comes my problem, say i wanted the module.php file how would i get the nav bar at the top to coem up every time, can i make it work like frames withotu frames?? Do you understand me?
Last edited by aspdude2004; 05-16-2004 at 12:42 PM. Reason: Dont ask !...not bad for a thirteen year old
05-16-2004, 05:30 PM #2
- Join Date
- Mar 2004
- Thanked 1 Time in 1 Post
This is a basic example of what u may be after. include this were u want the page to be shown and main.php is the default page i.e news. You can link to as you have shown above ... index.php?site=lah. can alsop echo $site to return a valuePHP Code:
include($site . '.php');
im sure their are other ways of doing it and would like to hear of some.
Last edited by Serex; 05-16-2004 at 05:32 PM.