I have this captcha script and it behaves differently on my test server and production server.
the code looks like this:
Code: Select all
<?php
session_start();
if ($_SESSION['captchacode']=='' && !isset($_POST['captchasubmit'])) {
echo "Condition 1";
}elseif($_SESSION['captchacode'] == $_POST['captchasubmit']){
echo "Condition 2";
}elseif($_SESSION['captchacode'] != $_POST['captchasubmit']){
echo "Condition 3";
}
?>