thinkphp确实把值post过来了 但是显示非法操作 10
<formaction="{:U(Home.'/Register/checkcode')}"method="post"><imgid="verCode"src="{:U(...
<form action="{:U(Home.'/Register/checkcode')}" method="post" >
<img id="verCode" src="{:U('Register/verify',",")}">
验证码<input name="a" type="text" />
<input type="submit" value="提交"/>
</form>
控制器里的代码
public function verify()
{
$Verify=new\Think\Verify();
$Verify->length=4;
$Verify->fontSize=60;
$Verify->entry();
}
public function checkcode()
{
echo I('post.a',0);
}
public function test()
{
$this->assign('title','测试');
$this->display();
} 展开
<img id="verCode" src="{:U('Register/verify',",")}">
验证码<input name="a" type="text" />
<input type="submit" value="提交"/>
</form>
控制器里的代码
public function verify()
{
$Verify=new\Think\Verify();
$Verify->length=4;
$Verify->fontSize=60;
$Verify->entry();
}
public function checkcode()
{
echo I('post.a',0);
}
public function test()
{
$this->assign('title','测试');
$this->display();
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询