Implementing PHP Captcha

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikeinspain
    New Member
    • Jan 2007
    • 21

    #1

    Implementing PHP Captcha

    Hi Guys

    I have a client who's existing site has a html contact form using "sps-mailsend.asp". It has a form validation script in place but is still being spammed and therefore would like to pop a "Captcha" script in.



    I am uncomfortable with ASP and not sure how to perhaps intergrate PHP into this page. I have been asked to go in and tidy this site up together with some SEO work, so the original work is not my own..

    I would apprecaite if someone could perhaps point in the right direction or recommend any particualr script?

    Thanks

    Mike
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    at the end, your best bet would be to put a secruity box, have random questions (or letters) appear, and validate if the inputted answer matches, if it does the form will submit, if it doesn't it halts and the form doesn't submit.

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

      Heya, Mike.

      Check out re-Captcha, which has a free PHP plugin for any script here.

      Comment

      • mikeinspain
        New Member
        • Jan 2007
        • 21

        #4
        Originally posted by epots9
        at the end, your best bet would be to put a secruity box, have random questions (or letters) appear, and validate if the inputted answer matches, if it does the form will submit, if it doesn't it halts and the form doesn't submit.
        epots9.. thanks for replying.. In your opinion how would you go about doing as you suggested?

        thanks

        mike

        Comment

        • mikeinspain
          New Member
          • Jan 2007
          • 21

          #5
          Originally posted by pbmods
          Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

          Heya, Mike.

          Check out re-Captcha, which has a free PHP plugin for any script here.
          pbmods.. thanks for the tip..

          i will check out the re-captcha site.. thanks

          mike

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by pbmods
            Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

            Heya, Mike.

            Check out re-Captcha, which has a free PHP plugin for any script here.
            I was reading up on that re-Captcha and it sounds pretty cool!
            Great link!

            Comment

            • epots9
              Recognized Expert Top Contributor
              • May 2007
              • 1352

              #7
              Originally posted by mikeinspain
              epots9.. thanks for replying.. In your opinion how would you go about doing as you suggested?

              thanks

              mike
              well if u have a database, u would have to create a table with columns (id, question, answer)...id auto increment. put simple questions (easy answers) and their answer in the table (put as many as u want).

              Then in your PHP create a random number from 1 to the number of rows u have. Then create a query statement:
              [PHP]$statement = "SELECT question, answer FROM valid WHERE id=".$randNum"; ";[/PHP]

              if u don't have a db, use a text file, eash line would have a question(delimi ter)answer. It be the same as above just with a random line.

              good luck

              Comment

              • kovik
                Recognized Expert Top Contributor
                • Jun 2007
                • 1044

                #8
                Originally posted by Motoma
                I was reading up on that re-Captcha and it sounds pretty cool!
                Great link!
                Isn't re-captcha the one where they're using it to create e-books? Or am I thinking of something else?

                Comment

                Working...