yzztik
10-23-2002, 06:17 PM
I am not sure if there is already somewhere that says how to do this but I am not really sure what to search for hence I cannot find it.
Basically what I am trying to do is create a new .php page using templates. When you go to the page, template 1 would be displayed. Then when you click on link A, it would display template A, etc. Kinda how the FAQ on misc.php works.
I get how to do a new page and have it use a template, but I am having trouble creating/defining variables and passing them from the link to tell it which template to use next.
I'd like to be able to have the .php code be generic ... meaning that I can create Template B and C afterwards and by simply editing template 1 and adding the link to it, it would know to use the template. Not sure if this is possibly, but from looking at the faq code in misc.php it seems to be.
I hope I am explaining this right, if not feel free to ask and I will try to clarify.
Can anyone point me in the right direction on how to do this or where to find the info?
Thanks!
Kitzzy
Basically what I am trying to do is create a new .php page using templates. When you go to the page, template 1 would be displayed. Then when you click on link A, it would display template A, etc. Kinda how the FAQ on misc.php works.
I get how to do a new page and have it use a template, but I am having trouble creating/defining variables and passing them from the link to tell it which template to use next.
I'd like to be able to have the .php code be generic ... meaning that I can create Template B and C afterwards and by simply editing template 1 and adding the link to it, it would know to use the template. Not sure if this is possibly, but from looking at the faq code in misc.php it seems to be.
I hope I am explaining this right, if not feel free to ask and I will try to clarify.
Can anyone point me in the right direction on how to do this or where to find the info?
Thanks!
Kitzzy