douhu4692 2014-04-02 15:35 采纳率: 100%
浏览 20
已采纳

使用文本框值验证图像

I would like to validate captcha image with user written textbox value. Is it possible.? here is some code what i have

   <div class="jr_captcha" style="float: left;">
   <img id="captcha"    src="http://xyz/cache/1396449675.0744.jpg" width="100" height="30"    style="border:0;" alt=" ">
   </div>
   <input name="data[Captcha][code]" id="code" type="text" class="jr_captcha_code" size="5" maxlength="5">

Here is image which shows up text which i would like to read. (not able to add because of reputation) but image look like KkbLM

Is it possible to do that.? I don't have any idea how can i handle that.

NOTE:

--I'm working on joomla

--I cannot modify HTML or any coding behind component.

--I have to use javaScript, Jquery or backed PHP script.

  • 写回答

1条回答 默认 最新

  • dongru2019 2014-04-02 16:18
    关注

    Text on image cannot be read automatically. From your sample, the image is from http resource, find a way to retrieve the text on the image from same http source and store it in hidden field. This can then be compared with the textbox value.

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

报告相同问题?

悬赏问题

  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line