Captcha

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Captcha

    Please i need very simple captcha with no image
    it will look like dis . 8F5A5. thanks

    #2
    Originally posted by jaidon20k View Post
    Please i need very simple captcha with no image
    it will look like dis . 8F5A5. thanks
    PHP Code:
    $code strtoupper(substr(md5(time()),0,5));

    echo 
    '<div>'.$code.'</div>';
     echo 
    '<form method="post" action="some_php_file.php">
    <div>
    insert the security code from above <input type="text" name="captcha_code" value=""/><input type="hidden" name="captcha_code_check" value="'
    .$code.'"/>
    </div>
    </form>
    '

    some_php_file.php
    PHP Code:
    if($_POST['captcha_code']!=$_POST['captcha_code_check']) $error 'Wrong security code';
    if(!empty(
    $error)) echo $error
    but this type of captcha doesnt make any sense, because its very easy for bots to read the captcha text.
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #3
      What make sense

      Comment


        #4
        Originally posted by jaidon20k View Post
        What make sense
        an image captcha
        Advertise your mobile site for FREE with AdTwirl

        Comment


          #5
          Thanks you sir

          Comment


            #6
            Do you like one like this Wapmasterz.net ™ Find Scripts,Downloads,Free Stuff,Helpful forum!
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              Yes my brother.

              Comment


                #8
                @ Gumslone

                Sir, this code have no session control, it just a true false case.

                Comment


                  #9
                  Originally posted by bivaswap View Post
                  @ Gumslone

                  Sir, this code have no session control, it just a true false case.
                  sorry, but i dont understand you.
                  Advertise your mobile site for FREE with AdTwirl

                  Comment


                    #10
                    May he mean no $_SESSION[]

                    Comment


                      #11
                      Originally posted by jaidon20k View Post
                      May he mean no $_SESSION[]
                      what for?
                      there are many different ways to create captcha, session is not the best solution for captche on a mobile site.
                      Advertise your mobile site for FREE with AdTwirl

                      Comment


                        #12
                        he means if i click submit nothing is stoping me to click refresh and that code is useless...
                        If you want to do text you can do something like: whats 3+4 ?
                        Just store in an array the question =>answer and random select one to be displayed and put the answer in session just like image captcha

                        Comment


                          #13
                          ok here it is

                          add it ur register form page
                          Code:
                          $hider=rand(1000,100000);
                          <small><b>Enter This Code Below:*</b></small><br/>
                          <b>$hider</b><br/>
                          <input type=\"hidden\" name=\"scode\" value=\"$hider\"/>
                          and the post field
                          Code:
                          <postfield name=\"code\" value=\"$(code)\"/>
                          and post
                          Code:
                          $code=htmlspecialchars(stripslashes(trim($code)));
                          $scode=htmlspecialchars(stripslashes(trim($scode)));
                          $pcode=htmlspecialchars(stripslashes(trim($pcode)));
                          and the error msg
                          Code:
                          if(($code) != ($scode)) $error='Incorrect security code!<br/>Please Enter Correct Code Shown In Last Page<br/>';
                          njoy bro
                          Last edited by hider; 16.10.11, 18:17.

                          Comment


                            #14
                            @ ionutvmi

                            yes you r right, thats i am trying to say!

                            Comment


                              #15
                              Ok i need that math captcha with on background image

                              Comment

                              Working...
                              X