AJParkinson
Technical User
Please help, php newbie...
How do I achieve the following (I've looked through threads on here and google - nothing has jumped out at me, but then again don't really know what I should be looking for...
I have a template page -> index.php
on this page are text links -> page1.php page2.php etc
also on this template page is a 'content' section where I (wish to) have an include -> <? include("clicked-link-variable.php") ?>
How do I get the template page to reload with the content 'include' name replaced with the link page name ???
i.e. click on page1.php link and template reloads with <? include("page1.php") ?> etc
any help greatly appreciated
Andrew
How do I achieve the following (I've looked through threads on here and google - nothing has jumped out at me, but then again don't really know what I should be looking for...
I have a template page -> index.php
on this page are text links -> page1.php page2.php etc
also on this template page is a 'content' section where I (wish to) have an include -> <? include("clicked-link-variable.php") ?>
How do I get the template page to reload with the content 'include' name replaced with the link page name ???
i.e. click on page1.php link and template reloads with <? include("page1.php") ?> etc
any help greatly appreciated
Andrew