|
basic CAPTCHA Image
|
|
05-17-2009, 07:27 PM
Post: #1
|
|||
|
|||
|
basic CAPTCHA Image
Well I was making a site and had to create some sort of CAPTCHA,
PHP Code: <?phpSeems to work decently, It generates a very random string, that is 5 to 7 characters long PHP Code: $str = substr(md5(microtime()*mktime()),0,mt_rand(5,7)); And uses a random color aswell as a somewhat random posistion, and throws 2 lines through the image then the captcha string is stored in $_SESSION['captcha'] |
|||
|
05-18-2009, 02:35 PM
Post: #2
|
|||
|
|||
|
RE: basic CAPTCHA Image
Pretty neat. Thanks for sharing the code.
|
|||
|
05-18-2009, 08:50 PM
Post: #3
|
|||
|
|||
|
RE: basic CAPTCHA Image
Very nice, this would be useful for login form, email forms, etc.
|
|||
|
05-19-2009, 11:55 AM
Post: #4
|
|||
|
|||
|
RE: basic CAPTCHA Image
Thanks for sharing. I hope to make a website in future. Hopefully it helps.
|
|||
|
06-21-2009, 07:50 AM
Post: #5
|
|||
|
|||
|
RE: basic CAPTCHA Image
Thanks for sharing the code, might use this for a registration form I might create, once again thanks.
|
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help
Invite
Contact




