The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I've managed to get the guestbook script working. To view the guestbook contents the url must end in "/guestbook.php?action=view". This is great when I access the script from my address bar or have a link direct to it from another page.
The trouble is when I try to call the guestbook script using php include from another page all I get is an error. If I take out the '?action=view' part of the address the include works but does not display the contents of the guestbook. It only displays the view and sign guestbook links.
The script I'm using allows me to make a web page within the script itself, so I can place the menu bar on the left and make it look like the rest of my site. However if I alter the menu at a later date I will have to keep altering this script aswell, which I don't want to keep doing.
Is there anyway around this problem?
include() just reads the file and dumps it, it doesn't parse anything. Therefore, passing a GET url doesn't work. Try setting the variable
$action = "view";
before includ()ing it and see what happens.
I've managed to get the guestbook script working. To view the guestbook contents the url must end in "/guestbook.php?action=view". This is great when I access the script from my address bar or have a link direct to it from another page.
The trouble is when I try to call the guestbook script using php include from another page all I get is an error. If I take out the '?action=view' part of the address the include works but does not display the contents of the guestbook. It only displays the view and sign guestbook links.
The script I'm using allows me to make a web page within the script itself, so I can place the menu bar on the left and make it look like the rest of my site. However if I alter the menu at a later date I will have to keep altering this script aswell, which I don't want to keep doing.
Is there anyway around this problem?