Help implementing captcha in a form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Help implementing captcha in a form

Post by Sindarin »

I'm trying to implement captcha verification in my form, I downloaded the script from http://www.white-hat-web-design.co.uk/a ... aptcha.php but when I place it at the start of my page it shows:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\Sites\site.com\demo\index.php:9) in E:\Sites\site.com\demo\contact.php on line 2
I'll have to note that this page is included from the index page.
User avatar
vargadanis
Forum Contributor
Posts: 158
Joined: Sun Jun 01, 2008 3:48 am
Contact:

Re: Help implementing captcha in a form

Post by vargadanis »

The problem is not with captcha. U need to put the

Code: Select all

session_start();
in the 1st or 2nd line of you code. It must be before the <head></head> part of the HTML otherwise you will get this Warning message.
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Re: Help implementing captcha in a form

Post by Sindarin »

Ah I see, thanks.
User avatar
vargadanis
Forum Contributor
Posts: 158
Joined: Sun Jun 01, 2008 3:48 am
Contact:

Re: Help implementing captcha in a form

Post by vargadanis »

np...
Post Reply