PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Captcha (http://www.phpdig.net/forum/showthread.php?t=2834)

defiantdezign 11-27-2007 07:54 AM

Captcha
 
hey there, having some issues with this captcha image that im dropping on a form. Not getting any errors its just not checking the captcha field when submitted. Below is a snippet. Any in sight into this would be great, im pretty new to PHP so anything helps.

Thanks

<?php
session_start();
if( isset($_POST['submit'])) {
if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {
echo 'Thank you.'.$_POST['message'].'"';
unset($_SESSION['security_code']);
} else {
echo 'Sorry, you have provided an invalid security code'.$_POST['message'].'""';
}
} else {}
?>

infrenion 12-04-2007 12:49 AM

Is the captcha image displayed properly?


All times are GMT -8. The time now is 02:01 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.