Am using freeware php Captcha code supplied by the hosters on email and order forms. It works fine with IE but not with other browsers. This is the commonly used Simon Jarvis script and I am sure if there was a general problem like this there would be some references on the net but can't find any, so it has to be something in my setup.
<form action="captcha/formnewf.php" method="post">
.....
<img src="http://xxx.co.uk/captcha/CaptchaSecurityImages.php?width=140&height=40&char acters=8"><br>
<input id="security_code" name="security_code" type="text"><br>
<input type="submit" name="submit" value="Send message">
</form>
CaptchaSecurityImages.php has the line:
$_SESSION['security_code'] = $code;
formnewfa.php has the line
if( $_SESSION['security_code'] == $_POST['security_code'] etc
In IE $_SESSION['security_code'] has the expected value, in Firefox and Chrome it is empty.
Any ideas why my session variable is getting lost? Cheers for usual brill solutions.
PS The usage is all in accordance with instructions here
PHP Captcha Security
PPS Found others with same problem but no answers. Cookies are enabled and I disabled Firebug and other addins.
<form action="captcha/formnewf.php" method="post">
.....
<img src="http://xxx.co.uk/captcha/CaptchaSecurityImages.php?width=140&height=40&char acters=8"><br>
<input id="security_code" name="security_code" type="text"><br>
<input type="submit" name="submit" value="Send message">
</form>
CaptchaSecurityImages.php has the line:
$_SESSION['security_code'] = $code;
formnewfa.php has the line
if( $_SESSION['security_code'] == $_POST['security_code'] etc
In IE $_SESSION['security_code'] has the expected value, in Firefox and Chrome it is empty.
Any ideas why my session variable is getting lost? Cheers for usual brill solutions.
PS The usage is all in accordance with instructions here
PHP Captcha Security
PPS Found others with same problem but no answers. Cookies are enabled and I disabled Firebug and other addins.
Comment