登录/注册

ThinkPHP

位置导航: ThinkPHP>

tp5接收数组传参

html:

{volist name="attribute" id="vo"}
							<lable><input type="checkbox" name="attribute[]" title="" value="{$vo.name}"> {$vo.name}</lable>
						{/volist}


php:

$manage = input('attribute/a');
	    	if($manage){
	    		$manage = implode(",",$manage) ;
	    	}


63K