Your Website field

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
goingnowhere
Posts: 2
Joined: Sun Dec 10, 2006 10:24 pm

Your Website field

Post by goingnowhere »

Script URL: http://www.tinanyborg.com/guestbook/gbook.php
Version of script: 1.4
Hosting company: streamline
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:


Hello :)

I've been using the guestbook on a friends website and everything is working great except I have a problem with the URLs people put into the "Your Website" field.

When I click on the URL this is what shows up in the address bar....

http://www.tinanyborg.com/guestbook/go. ... ctions.com

I also get this error message....

Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux222/t/tinanyborg.com/user/htdocs/guestbook/go.php:1) in /home/fhlinux222/t/tinanyborg.com/user/htdocs/guestbook/go.php on line 39


Is there a way of fixing it?

Thanks :)
http://www.goingnowhere.co.uk
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

If the go.php doesn't work upload it again and make sure you don't edit it.

Otherwise you can use "clean" URLs by changing line 794 from

Code: Select all

echo '<font class="smaller">Website:</font> <a href="go.php?url='.$url.'" target="_blank" class="smaller">'.$url.'</a><br>'; 
to

Code: Select all

echo '<font class="smaller">Website:</font> <a href="'.$url.'" target="_blank" class="smaller">'.$url.'</a><br>'; 
NOTE: line 794 is in gbook 1.43 if you have just 1.4 the line number will be different (consider upgrading!)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
goingnowhere
Posts: 2
Joined: Sun Dec 10, 2006 10:24 pm

Post by goingnowhere »

Thanks that worked perfectly. I doubt checked an it is 1.43 I'm using. :D
http://www.goingnowhere.co.uk
Post Reply