| Comments |
| David posted on 2006-12-08 11:11:11 |
| Great script. Question though, wouldn't it be a good idea to generate a new CAPTCHA if the validation fails. As you recommend to "rocks" on 2006-09-01 12:48:35, the CAPTCHA would not change when the form is resubmitted. I suppose this is not a big problem, but how would you force the regeneration if the validation failed in this case. |
| Fairuz Sulaiman posted on 2006-12-07 21:29:47 |
| Thanks for informations about image verification. It used in my page.Do you have any ideas to make more secure for mailing system --------------------------- Veselin Stoilov: the CAPTCHA image verification is one of the best protection methods. Depending on your needs we can also add JavaScript or php validation to your form. |
| DEP3 posted on 2006-11-12 18:30:42 |
| Really nice little script. Thanks you very much... |
| sir k posted on 2006-11-04 08:17:06 |
| I encountered this error. PHP Fatal error: Call to undefined function: imagecreatetruecolor() in c:\inetpub\wwwroot\dnet forms\captcha.php on line 9 ------------------------------------- Veselin: this means that your PHP does not have the GD library installed |
| Mike de la Flor posted on 2006-10-24 13:27:48 |
| Hello, I have the script working but I wanted it to go to my thank you page when successful. The post by Andrew asks the same question. The answer was ("Location: thankyou.html") but where do I put that? Can you please post the submit.php scritp with the Location: thankyou.html in the correct place? Thanks, Mike ------------------------------ Veselin: it should look like this <? session_start(); if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') { echo '<strong>Incorrect verification code.</strong><br>'; } else { header("Location: thankyou.html"); }; ?> ------------------------------ Mike: THANK YOU! I am now attempting to combine the captcha scripts with the PHP contact form. I may need some help....let's see what happens. |
| Chris posted on 2006-10-14 03:43:55 |
| Nice script! Can you make it display letters as well in the random code? --------------------------------- PHPJabbers: you can define an array with symbols that you want to use and then select random array elements instead of using rand(10000,99999); |
| BKerr posted on 2006-10-01 14:39:13 |
| Im having trouble increasing the fontsize, i tried just changed the variable to a larger number but it didnt work? Any way to do this? --------------------------------- PHPJabbers: can you show us the code that you use. |
| james posted on 2006-09-06 04:39:50 |
| hello, can some one combine contact form and this captcha script into one script? i;m new in programming, kind of confuse now what i mean is the contact form in : http://www.phpjabbers.com/make-contact-form-and-send-email-in-php-php21.html thx james --------------------------------- PHPJabbers: yes, we can combine this for you. However, we will require a small fee for doing this. |
| rocks posted on 2006-09-01 12:48:35 |
| Thank's for your nice code example. It helped me a little bit, but i would like to have such a function in my OOP file and it should be posted by the same page where the form itself stands. I'v tried to do it so, but everytime when i submit a value, then the comparison of two variables in the session and post will not be equal and i think that it's because of that after a click on the submit button the session variable will change.? Is my opinion correct? What should i do to have a right action to be done? I'll hope You can help me a little. --------------------------------- Veselin: I understand that you want the captcha verification code to be in the same page where the form is. If this is so you can just add this code to the captcha.php script so it creates a session variable if it has not done so. if ($_SESSION['vercode']<>'') { $text = rand(10000,99999); $_SESSION['vercode'] = $text; } else { $text = $_SESSION['vercode']; }; |
| Andrew posted on 2006-08-24 03:07:07 |
| I got it to work but I would like it to got to a page on my site to say thank you how do I do that? --------------------------------- Veselin: you can use a header("Location: thankyou.html") redirect or a javascript redirect. |