Cannot send session cache limiter - headers (solved)
Posted: Tue Jun 13, 2006 2:42 pm
I'm trying to add some Captcha to my newuser form.
Here's the snippet that should take care of that:
If the user enters the code correctly, the page works beautifully. But if the incorrect captcha code is loaded, this ugly code shows up:
Any suggestions on fixing this?
*EDIT*
BTW, line 48 is that session_start() code snippet.
Here's the snippet that should take care of that:
Code: Select all
function audit() {
session_start();
$digit = $_SESSION['digit'];
$userdigit = $_POST['userdigit'];
session_destroy();
if (($digit == $userdigit) && ($digit > 1)) {
return true;
} else {
return false;
}
}
if (audit()) {
} else {
echo "<center><font color=red><b>Please type in the correct text from the picture into the box below</b></font></center><br>";
$failed = "yes";
}Code: Select all
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cybergru/public_html/test/newuser.php:13) in /home/cybergru/public_html/test/newuser.php on line 48*EDIT*
BTW, line 48 is that session_start() code snippet.