cookie problem with guestbook

Here’s a superb guestbook: http://www.jemjabella.co.uk/scripts/bellabook/

Here’s my implementation: http://flamencopeko.net/book/

Works like a charm. Except there’s a cookie problem in http://flamencopeko.net/book/admin.php

The problem is with lines 316 and 317 in said file.

[php]
} else if ($_POST[‘name’] == $admin_name && $_POST[‘pass’] == $admin_pass) {
setcookie(‘bellabook’, md5($_POST[‘pass’].$secret), time()+(31*86400));
[/php]

http://flamencopeko.net/book/admin.php.txt

I was able to log in a few times, but usually not.

I get this error: Bad cookie. Clear 'em out and start again.

Clearing cache does not solve problem.

This is the error I get:

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/sys/www/cccp/flamencopeko/book/admin.php:11) in /usr/home/sys/www/cccp/flamencopeko/book/admin.php on line 317

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/sys/www/cccp/flamencopeko/book/admin.php:11) in /usr/home/sys/www/cccp/flamencopeko/book/admin.php on line 318

Problem was I added html in wrong place. It’s fixed. Feel free to sign. http://flamencopeko.net/book/

Sponsor our Newsletter | Privacy Policy | Terms of Service