Scott,

You call the captcha file directly from within the <img> tag:

<img src="randomWord.cfm" alt="Captcha Img" />

When you post the form, you compare the Captcha input to the session  
variable set in the cfm that generates the captcha.

With CFX_Captcha I believe the variable it sets is SESSION.imgvalue

HTH,

Jon

> Hey gang, I'm having some trouble getting something to work as  
> expected.
>
> I've got a script that generates a form based on data in a DB. I'm
> adding a CAPTCHA to it - Ryan Emerle's cfx_captcha to be specific.
>
> In the example page that came with the tag, in the end it spits out:
> <cfcontent type="image/jpeg" file="(file path)" deletefile="Yes">
>
> which displays the image that was generated, and deletes it.
>
> I can't seem to work out how to do the same thing within my form,
> without it munging things up - currently instead of the form,  
> image, and
> surrounding stuff, it simply displays the URL of the page in question.
> Currently I'm just displaying the generated image with a standard  
> <img>
> tag, and if need be, I can just run a clean-up script on the directory
> that the images are generated into, but that's clunky. :(
>
> Poking around the help files in DW, I can't seem to find anything that
> helps as far as dealing with this issue. Hence, CF-Talk! :)
>
> Any pointers in the right direction would be great.
>
> Thanks-
> --Scott
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:266015
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to