Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?
@  agyat : (18 April 2013 - 11:10 AM) false feelings.

Photo
- - - - -

Insert Captcha In My Php Form


7 replies to this topic

#1 Branigan

Branigan

    Newbie [ Level 1 ]

  • Members
  • 2 posts

Posted 02 February 2010 - 04:40 PM

Hello guys! I need some help...I don't know how to insert the captcha in this php form

#2 HannahI

HannahI

    Premium Member

  • Members
  • 442 posts
  • Location:Northeast, United States of America
  • myCENTs:READY[561.92]

Posted 23 July 2010 - 08:43 PM

An easy way to do capatcha is to ask a simple but logical question like, "What is 2 + 2". or "What letter comes after B?". Then lets say the you choes the 2 + 2 question, you were using post, and it's field name is captcha. Use the code to find out if they did it correctly.
<?php
$captcha = $_POST['captcha'];
if($captcha == 4) {
echo 'Captcha Correct';
} else {
echo 'Captcha Incorrect';
}
?>
Hope that helps!

#3 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 23 July 2010 - 09:56 PM

You can also use the opensource script from http://www.phpcaptcha.org/

Securimage is an open-source free PHP CAPTCHA script for generating complex images and CAPTCHA codes to protect forms from spam and abuse. It can be easily added into existing forms on your website to provide protection from spam bots. It can run on most any webserver as long as you have PHP installed, and GD support within PHP. Securimage does everything from generating the CAPTCHA images to validating the typed code. Audible codes can be streamed to the browser with Flash for the vision impaired.

They also provide a quickstart guide and live example sites.

#4 8ennett

8ennett

    Premium Member

  • Members
  • 415 posts
  • Gender:Male
  • Location:UK
  • myCENTs:95.20

Posted 25 July 2010 - 01:25 AM

I've got exactly what you need here http://fullhouse.bye...ts.php?script=1

It's the temporary site for my freelance web development and luckily the only free script i've made available for download is an image verification script with very simple to follow instructions for implementing it.

Hope it helps!

#5 FirefoxRocks

FirefoxRocks

    Super Member

  • [HOSTED]
  • 988 posts
  • Gender:Male
  • Location:Ontario, Canada
  • myCENTs:92.36

Posted 27 July 2010 - 12:24 AM

I prefer using reCAPTCHA: http://www.google.com/recaptcha (apparently I just found out they've been acquired by Google).

I don't think it is open source but every time a CAPTCHA gets solved it helps to digitize New York Times archives. And it's really easy to implement as well.

#6 8ennett

8ennett

    Premium Member

  • Members
  • 415 posts
  • Gender:Male
  • Location:UK
  • myCENTs:95.20

Posted 27 July 2010 - 12:51 AM

ah sorry I can't help you then. I've never used reCaptcha, I just don't feel like it fits in with the aesthetics of my sites. Plus I always prefer using my own stuff so I know exactly what's going on with it.

#7 vhortex

vhortex

    Guilty Until Proven Innocent

  • Members
  • 513 posts

Posted 04 August 2010 - 10:58 PM

recaptcha used to be open source and now it was part of google systems in effort to speed up and fix digitizing problems with books. it was now being served as a service and controlled via API calls to google just like the other google services. i used recaptcha twice and never used it on persoal sites that i created, i use homemade scripts for them.

there are methods to remove the box and the logo below the image all with an API theming call.

#8 imjjss

imjjss

    Advanced Member

  • Members
  • 162 posts

Posted 28 November 2010 - 09:39 PM

I added a simple question and answer in the signup form instead of using Capcha. I feel it's much more convinient.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users