用 $this->spArgs 获取不到 FORM里的 hidden值
发布于:2022-01-17 09:50:54
#1 smseo
上面的
id 和 url都 获取不到??
2011-10-24 10:23:52
#3 jake
对,要放在form标签里面。
2011-10-24 12:56:09
#4 smseo
我是放在
里面
以下是全部form里的代面
2011-10-24 13:01:24
#5 sephiroth
$id = $this->spArgs("id");
$url = $this->spArgs("url");
完全可以获得值
2011-10-24 15:27:46
#6 smseo
真不明白 我的为什么 获取不到值:@
2011-10-24 16:12:55
#7 sephiroth
控制器类文件发一下瞅瞅
2011-10-24 16:33:16
#8 smseo
function write(){
dump($this->spArgs());
}
2011-10-24 17:19:41
#9 smseo
输出结果 中没有id 没有 url 项
2011-10-24 17:20:22
#10 sephiroth
http://www.speedphp.com/api-spargs.html:L 你可以看一下这个
2011-10-24 17:30:54
#11 jake
看看chrome或者fire 的参数提交内容。
或者直接看看$_POST有没有吧。没有就是没有提交了
2011-10-24 19:48:39