| Comments |
| Rodrigo Martell posted on 2007-12-19 09:58:28 |
| Great script! I have a tiny problem, howver, making it work. I created a test php file and called it testimage.php, the code is:<br /><?<br /> session_start(); error_reporting(E_ALL ^ E_NOTICE); ?> <td> <input name="create_image" type="text" value=""><br /> &nbsp;&nbsp;<br> <img src="captcha.php"> </td> <? echo("THis is the code: ".$_SESSION['vercode']); ?> I notice that upon initial loading of testimage.php, the session variable isn't set so nothing is displayed in the echo statement in line 3 of captcha.php. If you refresh the page, a code is displayed in the echo statement, but it doesn't match the one on the image. I realized that the session variable is set and sent after the echo statement is executed in captcha.php line 3 so when testimage.php reads it in it's always lagged (displays the previous code before refresh). Can you please give me a pointer on how to fix this? I'm kind of pulling my hair out.</p> Great script! I have a tiny problem, howver, making it work. I created a test php file and called it testimage.php, the code is: Thanks!! -------------------------------------- Veselin: what you can do is to set the session variable in your testimage.php and then the captcha.php to use that variable. But I do not see a reason why you want to print the value of session variable on your web page |
| Theo posted on 2007-12-14 17:19:47 |
| Great script guys! Simple and effective! Is there any way though, to change the image background to something more complex? -just to give a harder time to OCR's... or you think it's not necessary? --------------------- Veselin: you can just use a font with more difficult to read characters |
| shaid posted on 2007-12-11 08:50:41 |
| hi thanks for the script but i m facing problem with some unrecognized text likeand then the form... can u please tell me why this is happening... Thanks you |
| Jeremy posted on 2007-11-28 01:51:27 |
| I have added the script to my page, but when I enter the generated number and press submit, I get an \"incorrect verification code error\" I\'ve tried several times thinking I may have mistyped, but this is not the case. Any help would be much appreciated. |
| Matīss posted on 2007-11-08 13:07:32 |
| I have installed this code on my page , and everything is just ok, but i cannot see any image? nor in form i put it, nor when i open captcha.php file.. any ideas why? if there`s no GD library, it show an error? Cannot see any info about GD lib in phpinfo(); :/ but code looks great. thx |
| Doug posted on 2007-11-02 23:39:58 |
| great code, noticed question about switching numbers to letters, what would an array look like to do this and how would you call them at random? --------------------- Veselin: it should be something like this $template = "abcdefghijklmnopqrstuvwxyz"; $rndstring = ""; for ($a = 0; $a <= 5; $a++) { $b = rand(0, strlen($template) - 1); $rndstring .= $template[$b]; } |
| IAN posted on 2007-10-26 10:00:02 |
| I USE FORMMAIL.CGI TO PROCESS MY FORM (ACCOMMODATION, MORE FIELDS). HOW CAN I INCLUDE YOUR VERIFICATION IN FORM. THANKS -------------- Veselin: you need to use PHP script to send the emails |
| Ron posted on 2007-10-26 04:56:20 |
| If I enter a wrong validation number it still allows the form to be sent. What Have I done wrong? ------------------ Veselin: hard to guess what could be wrong, but maybe your server does not support SESSIONs or you just made a mistake applying the code on your form :) |
| jay posted on 2007-10-19 23:11:38 |
| still doesn't execute the SQL |
| jay posted on 2007-10-19 16:11:59 |
| i have the captcha image verification working, and i have a redirect once it gets to the submit.php. however, i have a SQL insert statement in between the verification and the redirect, but it's not executing the insert statement. any ideas? ----------------- Veselin: remove the redirect and see if it will execute the SQL |