分享一个组装的验证码比CI自带的好看
本帖最后由 指尖的殤魂 于 2012-4-23 10:56 编辑直接代码
function verify(){
$this->load->helper('captcha');
$vals = array(
'img_path' => './captcha/',
'img_url' => base_url().'captcha/',
'word' =>'',
'expiration' => 30,
);
$cap = create_captcha($vals);
echo $cap['image'];
$this->session->set_userdata('verify',$cap['word']);
var_dump($this->session->userdata('verify'));
}
Hex老大帮我加分
页:
[1]