Posted By

nehringryan on 05/09/11


Tagged

ColdFusion


Versions (?)

Coldfusion CAPTCHA Generate


 / Published in: ColdFusion
 

URL: http://ryannehring.com/

Built right into Coldfusion is the ability to generate CAPTCHA images for form validation without any outside library's, plug-ins, or crazy workarounds. It's incredibly simple using the cfimage tag as below:

  1. <cfset size = 25 * 11 * 1.08/>
  2.  
  3. <cfimage action="captcha" fontSize="25" width="#size#" height="50"
  4. text="ThisIsATest" fonts="Verdana,Arial,Courier New,Courier" difficulty="low">

Report this snippet  

You need to login to post a comment.