怎么叫通过模板呢?不大明白。
但如果要传递数组可采用以下方法:
$a[0]='1';
$a[1]='2';
$a[2]='3';
$string = implode("<plode>",$a);
***
一下是传递参数
***
b.php?string=$string;
****************************
在b.php进行还原
$a = explode("<plode>",$string);

解决方案 »

  1.   

    不知道你的具体模板
    Template
    Smarty:
    <{section name=sec loop=$contentlist}>
    <input type="hidden" name="test[]" value="contentlist[sec].value">
    <{/section}
    ACTION
    $test=$request->getParameter("test");
    $request->setAttribute('test',"test");
    View
    通过smarty模板从session取值,然后,转发到页面!
    也就ok了!
      

  2.   

    $a = array(1, 2, 3);
    ".php?a = " . serialize($a);$a = unserialize($_GET['a']); // 返回数组
      

  3.   

    我试了 zalvsa(zalvsa) 的方法,搞定,谢了