you can use javascript to do this:
<a href="JavaScript:location.reload(true);" class="form">Refresh this image</a>

you can see an example here:
http://www.gotnutrients.net/contact/contact.cfm

any questions let me know
Johnny


(o o)
----ooO--(_)--Ooo----------------------------------
John Barrett
Flash Design & Development
http://www2.hawaii.edu/~johnbarr

.oooO
( )  Oooo.
\ (  (  )
 \_)  ) /
(_/


On Wednesday, March 16, 2011 at 10:30 AM, Adam Parker wrote: 
> 
> I use Ray's method of implementing a CAPTCHA in this way:
> 
> <!---create CAPTCHA--->
> <cffunction name="makeRandomString" returntype="string" output="false">
> <cfset var chars = "23456789ABCDEFGHJKMNPQRS">
> <cfset var length = randRange(4,6)>
> <cfset var result = "">
> <cfset var i = "">
> <cfset var char = "">
> 
> <cfscript>
>  for(i=1; i <= length; i++) {
>  char = mid(chars, randRange(1, len(chars)),1);
>  result&=char;
>  }
> </cfscript>
> 
> <cfreturn result>
> </cffunction>
> 
> 
> <!--CAPTCHA form element--->
> 
> <span class="required">&##8727;</span>Enter Text Below 
> (case-sensitive):</label>
> <input id="captcha" name="captcha" class="text" type="text"/>
> <cfset captcha = makeRandomString()>
> <cfset captchaHash = hash(captcha)>
> <input type="hidden" name="captchaHash" value="#captchaHash#"> 
> <cfimage action="captcha" width="300" height="55" text="#captcha#" 
> fonts="verdana,arial" > 
> 
> 
> How do I implement code to allow the user to refresh just the CAPTCHA image 
> if it cannot be clearly read?
> 
> Thanks in advance. 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5239
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to