来请教一个验证码的问题???BUG?
先上代码:function index(){ $i = rand(1000,9999);
$vals = array(
'img_path' => './uploads/captcha/',
'img_url' => '/uploads/captcha/',
'word' => $i,
'img_width' => '70',
'img_height' => '21',
'expiration' => '720',
);
$cap = create_captcha($vals);
$data = array(
'captcha_time' => time(),
'ip_address' => $this->input->ip_address(),
'word' => $cap['word'],
);
$query = $this->db->insert_string('captcha', $data);
$this->db->query($query);
echo $cap['image'];
}
再来看效果:http://t3.qpic.cn/mblogpic/bfdf237ac5744d622eb2/2000.jpg
四位的验证码,跑外面去了。。。囧
请各位指教
没人知道?没人遇到?莫非是不屑? o熊小猫o 发表于 2012-4-5 10:29 static/image/common/back.gif
没人知道?没人遇到?莫非是不屑?
我也正在想办法解决这个问题呢
加宽image到150试试~
页:
[1]