AWEBER 和验证码集成
我有一位客户希望将验证码集成到向 AWABER 发布信息的表单中。它使用他的 aweber 帐户来收集订阅者。所以我在这里读过 http://www.devgarbage.in /2011/01/25/auto-submit-to-aweber/ 无法对 AWEBER 进行 AJAX 调用,因为 AWEBER 严格希望用户按下按钮(很公平),而且我会编写一个脚本使用 PHP 在本地验证验证码字段,然后在成功后将表单发布到 aweber...所以,只想检查是否有任何其他解决方案来解决此问题。
谢谢。
I have a client that wants captcha integrated into a form that posts information to AWABER. It uses his aweber account to collect subscribers. So I have read here http://www.devgarbage.in/2011/01/25/auto-submit-to-aweber/ that AJAX calls to AWEBER can't be made since AWEBER strictly wants the user to press the button (fair enough) and I would have made a script that validates the captcha field locally with PHP and then, upon success, to post the form to aweber... So, just want to check if there are any other solutions to this problem.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果不控制双方,就无法跨域发送请求,这就是 ajax 无法工作的原因。您可以从您的服务器发送它,但在添加的每个客户都来自同一 IP 地址后,它们可能会流行起来。不过,在验证验证码输入正确后,您可以使用 javascript 自动提交表单,就好像他们单击了表单一样。
You can't send requests across domains without controlling both sides, that is why ajax wont work. You could send it from your server, but they will likely catch on after every customer who gets added comes from the same IP address. You can however automatically submit the form with javascript as if they clicked it, after verifying the CAPTCHA was typed correctly.