如下面html代码:<html>
<body>
<input type="text" name="text"></input><br>
<img src="http://www.24pay.net/ValidateCode.htm?type=1328711490656" /><br>
<input type="submit" value="登录">
</body>
</html>
我该怎么判断和图片的字符相符了?就是怎么判断图片验证了?
<body>
<input type="text" name="text"></input><br>
<img src="http://www.24pay.net/ValidateCode.htm?type=1328711490656" /><br>
<input type="submit" value="登录">
</body>
</html>
我该怎么判断和图片的字符相符了?就是怎么判断图片验证了?
2.定义一个js全局变量,把验证码初始值给这个全局变量,当验证码改变时,给改变量赋值;在提交表单是做js验证应该就木有说明问题了吧