开发者

php help resolving error

Hello Im trying to make a form with a captca:

But everytime I 开发者_如何学运维submit it shows me that the captcha is wrong i dont know where is my mistake, can you please look at the code and tell me ?

Here is the form: http://pastebin.com/yXx5APRD look in the end.. for the input submit button...

Here is the captcha.php from where I get the image: http://pastebin.com/9hYnDBv4

view the comment below for the sending code pastebin


You can try this

http://sourceforge.net/projects/captcha/


  $gjetja= $_SESSION["vercode"];
  if (!preg_match($gjetja,$vercode)) {
     $error_message .= '<strong>Incorrect verification code.</strong><br>'; 
  }

Try replace it with

  $gjetja= $_SESSION["vercode"];
  if ($gjetja !== trim($vercode)) {
     $error_message .= '<strong>Incorrect verification code.</strong><br>'; 
  }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜