Today, I've been asked about how to do Image Captcha in CFMX7 by my ex-colleague. Well, I didn't see so far image manipulation in CFMX7 but most of CF developer use ImageCFC. Honestly, I don't want them to use ImageCFC for only captcha function because I don't think they can manipulate it very well. That's why I suggest them to create "simple maths calculation formula (4+5 = ?)". Because it's very simple to create and don't need to consider for browser compatible and other risks.
I need to put following coding into form.cfm.
<cfset firstnumber = randrange(1,9)>
<cfset secondnumber = randrange(1,9)>
<cfset session.result = firstnumber + secondnumber>
<cfoutput>#firstnumber# + #secondnumber# = ?</cfoutput>
<form method="post" action="check.cfm">
Enter result : <input name="txtvalue">