|
||||||||||||||
|
||||||||||||||
| Comments |
| jon porter posted on March 29, 2008, 8:03 pm |
| OMG, thank you guys so much! I was working FOREVER to find a captcha script that was easy enough and was not impossible to read. THX! |
| Marian posted on March 25, 2008, 3:19 am |
| For igor (about session_start() [function.session-start]: error) @session_start(); if (!preg_match("/^[0-9a-z]*$/i", session_id())) { $error->handleError("WARN", "your ssid is expired"); session_regenerate_id(); } // just try it. |
| Chafucosoft posted on February 22, 2008, 1:52 pm |
| great just what i was looking for !!! :D |
| igor posted on February 20, 2008, 12:34 am |
otherwise it still works, but it gives me that message... |
| igor posted on February 20, 2008, 12:33 am |
| this is the error message that i'm getting for this line: session_start(); Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /web/sites/grinder/cornetta.com/captest/feedout.php:2) in /web/sites/grinder/cornetta.com/captest/feedout.php on line 3 |
| Severo posted on February 4, 2008, 7:49 am |
| Try to make it larger and easier to read, and shorter. |
| li posted on January 15, 2008, 11:31 am |
| hey, i think that code is really simple and very good, i have implemented it on my site and it works. the only thing i would like to do to reach perfection is to be able to get the "incorrect security code" on the same page of the form. like in your page . it just add a red line above the text box. please tell us how to do it. |
| satheesh posted on January 7, 2008, 6:09 pm |
| great coding... its working in form . thanks a lot |
| Javier posted on December 28, 2007, 9:00 pm |
| have problem with: if ($HTTP_POST_VARS["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') { echo '<strong>Codigo Incorrecto de Verificación.</strong><br>'; echo $HTTP_POST_VARS["vercode"]; echo $_SESSION["vercode"]; do captcha.php but verificacion in the same form, when echoing the vars the seccond 1 was empty How can I pull that var to the main registro.php |
| isak posted on December 27, 2007, 8:39 pm |
| I added the captcha to an existing form. Verification works fine. If the verification is successful, I am redirecting the form to myMail.php program as follows: <? session_start(); if ($_POST["vercode"] != $_SESSION["vercode"] OR $_SESSION["vercode"]=='') { echo '<strong>Incorrect verification code.</strong>'; } else { header("Location: http://www.whatever.net/cgi-bin/myMail.php"); }; ?> I keep getting an error message that a required field on the form has not been completed. But it has been completed. If I remove the link to submit.php and link directly to myMail.php verification of the required field works. Help? ---------------------- Veselin: using header redirect to your mail script you do not pass the variables submitted to your form. And myMail.php does not receive the data from the form and this is way tells you that a field is required. What I would suggest is that you copy the code from myMail.php script in your submit.php file so it is the one that processes form data. ---------------------- Isak: Many thanks. I think that did it. Now on to tweaking. |