sp为什么出现这种情况

#1 xpp1000


$title=$this->spArgs("title");
        $content=$this->spArgs("$content");
    $fg=$this->spArgs("fg");
        $date=strtotime(date("Y-m-d H:i:s"));
        $type=$this->spArgs("type");
        echo $content;
        print_r($content);
        exit();
输出结果
ArrayArray ( [c] => gongyeadmin [a] => xinxisave [title] => 231 [content1] => [fg] => 0 [type] => 1 [button] => 提交 )
十分不解。

2010-12-27 15:05:37

#2 jake

问题出在楼主代码中的:
$content=$this->spArgs("$content");
因为$content没有赋值,所以上面的代码和$content=$this->spArgs("");是一样的。也就是获取全部的提交参数。
楼主可以试试:

$content = 'title';
$content=$this->spArgs("$content");
dump($content);

2010-12-27 19:09:24