实施验证码在Flash [英] implementing captcha in Flash

查看:114
本文介绍了实施验证码在Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜 我正在开发一个闪存登记表,我需要将动态'验证码'的图像进行确认。 谁能推荐一个最佳的解决方案,这样做?

Hi I'm developing a flash registration form and I need to incorporate dynamic 'captcha' images for confirmation. Can anyone recommend a best solution for doing this?

推荐答案

这不是说不同的HTML表单的验证码,真的。

It's not that different from a captcha in an HTML form, really.

假设你正在使用PHP的服务器上,你有一个captcha.php scritp生成的验证码图像并将其值在会话中。在HTML表单中,你会使用的元素,设置它的SRC为captcha.php。用户将填补一个字段,他们在图像中看到的文字。在接收后的剧本,你会检查用户输入相匹配的会话值。

Suppose you're using php on the server and you have a captcha.php scritp that generates the captcha image and saves its value in the session. In an HTML form, you'd use an element and set its src to captcha.php. The user would fill up a field with the text they see in the image. In the script that receives the post, you'd check if the user input matches the session value.

在一个闪光的形式,这是完全一样的。您加载图像调用captcha.php并要求用户输入额外的领域。然后,当您发布的数据,您传递用户的验证码字段输入值的服务器和服务器匹配,针对该值已存储在会话中,当你打电话captcha.php。

In a flash form, it's exactly the same. You load the image calling captcha.php and ask the user to type the extra field. Then, when you post the data to the server you pass the value typed by the user in the captcha field and the server matches that against the value it has stored in the session when you called captcha.php.

所以,基本上,这是相同的HTML表单。

So, basically, it's the same as in an HTML form.

这篇关于实施验证码在Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆