Coldfusion CAPTCHA Generate


/ Published in: ColdFusion
Save to your folder(s)

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:


Copy this code and paste it in your HTML
  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">

URL: http://ryannehring.com/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.