dongzanghong4379 2013-09-20 19:26
浏览 40
已采纳

可以将表单字段从一个站点传递到另一个站点吗?

Looking to simplify a form I fill out regularly that doesn't accept auto-fill. I need to pass information from a page to another site's form fields. Won't need to automate the submit because the page has a captcha.

  • 写回答

1条回答 默认 最新

  • dqdtgiw4736 2013-09-20 19:39
    关注

    The captcha may render it not possible, unless it can be called by a separate URL. If it can, you simply create a form on your site, simply copy the form along with the captcha URL to your site and change any URLs such as the action and captcha URL from relative to absolute, pointing to their URL and remove any autocomplete="off".

    If the captcha is handled server-side so that it only loads for that form, you may be able to fetch the whole form with ajax and just include the captcha, but it could be smart enough to avoid that.


    Also, I want to be clear that this solution is meant to work with the captcha and that I am against form-robots that pollute the web. I am also against autofill=off in 90% of the contexts it's implemented, as it should be reserved for login forms that are often public (such as library and university login pages) or absolutely can't allow the data to be stored locally (such as sites requesting SS#). In all other cases, it simply makes the site admins feel more secure while end users come up with either dumb workarounds like storing their credentials in a location less safe than their browser's password manager (like a txt file) or clever solutions like writing their own form or using GreaseMonkey.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler