Hello just started in the PHP world so a bit new to it all...
OK:
A page layout with header, navbar, main text area and right side bar.
10 buttons in the navbar ( for 10 different text documents, plain html pages)
What i want to achieve is that when you click on one button you get in the main text area the specified plain text.
What I have done so far is make 10 different php pages with the following script in the main text area :
<?php
include("http://")
?>
I just want to know if I can do it so that I only have one template page and all the buttons once clicked on bring up different text in the main text area?
Is this possible without a database?
All your help would be appreciated.
----------------------------------REPLY----------------------
Sorry guys a bit new to this and can't find the reply button???
i don't know is it obvious?
Anyway
Hello Greg
thank you for the link.
I have been looking at the script and am bit confused...
This is what I have done so far:
I understand this script or at least I think I do.
<?php
switch ($GET['go']) {
case "1": $inc = 'Page01.php';
break;
case "2": $inc = 'Page02.php';
break;
case "3": $inc = 'Page03.php';
break;
case "4": $inc = 'Page04.php';
break;
default: $inc = 'Page01.php';
_ break;
}
__ include ($inc);
?>
But how do I call it and where do I put it?
<li><a href="case "1"">Accountants</a></li>
<li><a href="case "2"">Architects</a></li>
I know that does not work...
Now saying don't use that script?
What do I do?
All I want is to be able to have different buttons with different text pages inserted?
it can't be that hard?
----------------------------------REPLY----------------------
There is no inserting text from other sites it is all under the same domain.
so I don't really have to worry about other scripts running that will be executed?
All I want is to be able to use some text files in different sections.
Help???