GetDotted Domains

Viewing Thread:
"PHP Guestbook Help"

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.

Fri 12/10/01 at 20:40
Regular
Posts: 787
I'm having a problem with my Guestbook PHP script.

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?
Sun 14/10/01 at 16:53
Regular
"Eff, you see, kay?"
Posts: 14,156
No probs.
Sun 14/10/01 at 16:00
Regular
"It's Only Me"
Posts: 104
Thanks Turbonutter everything now works exactly how I want it to.
Sat 13/10/01 at 01:00
Regular
"Eff, you see, kay?"
Posts: 14,156
I know what's up.

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.
Fri 12/10/01 at 21:30
Regular
"It goes so quickly"
Posts: 4,083
Whats the address for this Guestbook???
Fri 12/10/01 at 20:40
Regular
"It's Only Me"
Posts: 104
I'm having a problem with my Guestbook PHP script.

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?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Many thanks!
You were 100% right - great support!
Very pleased
Very pleased with the help given by your staff. They explained technical details in an easy way and were patient when providing information to a non expert like me.

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.