php - captcha code interfering with form handler

319

Solution:

You try to send HTTP header inverify.php:

header('Location: contact-form-thank-you.html');

after sending HTML comment in first line, which is treated as response, from now on sending any headers will issue such warning.

If you really need that comment, put it before<!DOCTYPE or in<body> tag.

648

Answer

Solution:

Try to remove the spaces after your comment

<!-- begin code for including captcha validation-->    
                                                   ____
                                            ^^ Spaces here ^^

If does not solve, you need to remove the comment, and can put inside<?php tag:

verify.php

<?php
// begin code for including captcha validation

[...] // Lots of code

People are also looking for solutions to the problem: php - Using POST data after validating using CodeIgniter

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.