In this case try AJAX. You can fire off an event to send the CAPTCHA
string to a processing template, compare the sent string to the
session variable sever-side and send back a true or false result.

On 4/14/07, Byte Me <[EMAIL PROTECTED]> wrote:

> I have a form that has a CAPTCHA on it, the answer to the CAPTCHA is stored 
> in a CF SESSION variable. I use JavaScript to check the form contents being 
> submitted, which (now includes a CAPTCHA challenge). If I convert the answer 
> to js format(in the form), and then call it from the external .js file, that 
> will work fine, but the problem is, I made the answer available to any bots, 
> because it is now in the source code of the form. What I am trying to do is 
> get the contents of the SESSION variable into the .js file, without 
> compromising the answer. I think however it may make more sense for me to 
> simply have the challenge in a separate template(that the user must go 
> through first), before allowing him access the form.

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275188
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