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

@  yordan : (19 June 2013 - 02:28 PM) Long Life To Asta New Era
@  agyat : (19 June 2013 - 01:58 PM) New Era Start At Asta Or Asta Start In New Era. :unsure:
@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?

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,681 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