This topic is locked
[SOLVED]

 CAPTCHA yet again!

3/1/2010 2:51:14 AM
PHPRunner General questions
G
glazer author

Just when I thought CAPTCHA was working it has started to fail again. This time when you enter the code it ignores it and gives you another code. This seems to have happened without changing anything as far as I can tell. I tried reinstalling PHPRunner but this didnt help. Searching on the web via Google shows that this problem has been occurring with many other websites, and as yet no-one seems to have a solution. Are others using CAPTCHA with PHPRunner5.2 having the same problem?

N
nix386 3/2/2010

Reluctantly I've disabled captcha on my site, I'm using 5.1 and for some reason ie7 and 8 don't want to play nicely.

N
netmedia59 3/7/2010

I have the same problem

CAPTCHA doesn't work for me or ...
It works localy on a WAMP server

But it doesn't when I uploaded the project on my hosted server ????
Don't know why ?
Olivier

Lille - FRANCE



Just when I thought CAPTCHA was working it has started to fail again. This time when you enter the code it ignores it and gives you another code. This seems to have happened without changing anything as far as I can tell. I tried reinstalling PHPRunner but this didnt help. Searching on the web via Google shows that this problem has been occurring with many other websites, and as yet no-one seems to have a solution. Are others using CAPTCHA with PHPRunner5.2 having the same problem?

N
nix386 3/9/2010

Hi Olivier
Is this happening just in Internet Explorer?

Is the live site HTTP or is it in HTTPS?
Nick



I have the same problem

CAPTCHA doesn't work for me or ...
It works localy on a WAMP server

But it doesn't when I uploaded the project on my hosted server ????
Don't know why ?
Olivier

Lille - FRANCE

N
netmedia59 3/9/2010

Hello Nick,
Unfortunately, it happens with all my browsers (IE Firefox Chrome)
It happens when it is on a hosted web

It doesn't happen when my files are localy on my PC with a WAMP Server (apache) ???
Thanks
Olivier



Hi Olivier
Is this happening just in Internet Explorer?

Is the live site HTTP or is it in HTTPS?
Nick

G
glazer author 3/9/2010



Just when I thought CAPTCHA was working it has started to fail again. This time when you enter the code it ignores it and gives you another code. This seems to have happened without changing anything as far as I can tell. I tried reinstalling PHPRunner but this didnt help. Searching on the web via Google shows that this problem has been occurring with many other websites, and as yet no-one seems to have a solution. Are others using CAPTCHA with PHPRunner5.2 having the same problem?



With Jane's help I now have a working CAPTCHA. First of all it seems that it is important to have in the php.ini file the line register_globals = off. However this did not work in my case because the hosting server that I am on overrides this. So instead, Jane gave me a work around that does work. This is to open the generated registersuggest.php file and change $captcha to $captcha1, thus:

$captcha1="";

$email="";

$password="";

$userName="";

$field = postvalue('field');

$val = postvalue('val');

if($field == 'UserName')

$userName = $val;

else if($field == 'Password')

$password = $val;

else if($field == 'Email')

$email = $val;

else if($field == 'captcha')

$captcha1 = $val;
if(strlen($captcha1) && @strtolower($captcha1)!=strtolower(@$_SESSION["captcha"]))

echo "Invalid security code.";
I understand that something will be done about this in the next update.

N
netmedia59 3/10/2010

Hey Mike,
Thank you very much

That's a good advice and it works !!!!!!!!!!
Olivier

Lille (FRANCE)