Why should I rely on PHPJabbers.com for all my PHP scripting needs? What do you offer me when buying some script?
  • Top quality scripts
  • Full demo before buying
  • Best pricing
  • Script customization
  • 7 days a week support
  • Installation support
  • Secure buying
  • Captcha image verification

    posted on 2006-06-24 00:47:34
    Comments
    igor posted on 2008-02-20 00:33:10
    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 2008-02-04 07:49:50
    Try to make it larger and easier to read, and shorter.

    li posted on 2008-01-15 11:31:18
    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 2008-01-07 18:09:04
    great coding... its working in form .
    thanks a lot

    Javier posted on 2007-12-28 21:00:55
    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 2007-12-27 20:39:06
    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"]=='') {
    &nbsp;&nbsp;&nbsp;echo '<strong>Incorrect verification code.</strong>';
    } else {
    &nbsp;&nbsp;&nbsp;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.

    tomasz posted on 2007-12-25 23:33:18
    hmm.. it works on my other page, when refreshing i have to reenter the code,

    but on the other one it works without reentering... can you help me on this?

    tomasz posted on 2007-12-25 22:36:46
    Hi,

    can you help me, code works, but when i refresh the posted form it doesnt say that the code is wrong, it continues, you can refresh as much as you want ...

    Is there any way to fix it, when you post it, the code changes, and when you want to refresh the page, you have to reenter the code

    Thanks

    lian posted on 2007-12-24 07:57:21
    i will explain myself better....
    i have put that code in my website. it works well, but i would like it to act like your form in which the submit does not open a new window if the verification code is mistyped. and just add a line says type again, and it should change a picture as well...
    what have i done wrong ?
    thank you.

    Martellito posted on 2007-12-19 23:25:39
    Thanks! It took a bit of fiddling around but it works now. The reason I printed the session variable on the screen was to make sure that the image's number matched the session variable in memory. In the web page, of course I won't print it, as it defeats the purpose of it. Thanks again, you've been extremely helpful!


    Pages:   1 2 3 4 5 6 7 8 9 10 11
       
    If you have any additions, suggestions or modifications for this example please contact us or use the form below.
       
    Your name:
    Your email: (email address will not be posted on the web site)
    Comment:
    Verification