Jump to content
Sign in to follow this  

Creating captcha

Recommended Posts

I need to generate an image with a random string using this function:

Func randomstring($length=10)
$array = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890123456789","")

$new = ""
For $X = 1 to $length
$new &= $array[Random (1, $array[0], 1)]

return $new

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...