hi all, i have been looking over 3 days but i really cant find how to do it..
i found help at this page: http://www.hackwars.net/wiki/index.php/Multiple_Pages
i did wath the page ask to do so i maked all the filles:
http script with this:(in enter)
int main() {
string page=""+fetchGetVariable("page");// looks for the name of the page like "***.***.*.***?page=home"
string site="";// starts the site variable
if (page=="home") { // if the page is home
site=readFile("Page1");// reads the content of the file "Page1" to represent the page
}else if (page=="page1") {// if the page is page1
site=readFile("Page2");// reads the content of the file "Page2" to represent the page
}
replaceContent("content", site);// replaces <?content?> in your html with the site variable
}
than i maked this:
Page1:
This is page 1.
back
Page2:
This is page 2.
back
and then at least the script editor this:
Navigation
<?content?>
i am sure of these things:
the ip's match
and the file names are the same..
but i cant get txt to the page1 and page2
some help plaise ?
Recent comments
1 day 8 hours ago
1 day 15 hours ago
1 day 15 hours ago
3 days 6 hours ago
3 days 7 hours ago