created.
http://cvs.sourceforge.net/viewcvs.py/*checkout*/openxcf/javacfx/src/
net/sourceforge/openxcf/javacfx/ImageString.java?content-
type=text%2Fplain&rev=1.1
-Matt
On Jun 16, 2004, at 4:23 PM, Bryan F. Hogan wrote:
> Ok, ok, I've been holding off on this because I wanted to write
> something up about it. Here it is.
>
> 1. Find an image package that will allow you to create and write text
> on
> top of a image.
>
> 2. Create a file like below.
>
> image.cfm
>
> <cfset theImage=Your image manipulation package>
>
> <cflock timeout="2" throwontimeout="yes" name="captchaImage">
> <cfset session.captchaString=yourRandomUniqueStringGoesHere>
> <cfset captchaString=session.captchaString>
> </cflock>
>
> <cfset theImage=write(session.captchaString)>
>
> <cfcontent type="image/gif" reset="true>
> <cfoutput>#variables.theImage#</cfoutput>
>
> 3. Include the image on your form
>
> <img src=""> >
> 4. Include a field the user can type into.
>
> 5. Action page check form field with session.captchaString.
>
> That's as simple as it gets.
>
> Whittingham, P wrote:
>
> > thanks...didn't know that.
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

