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.