PHPEye开源社区 » Zend Framework 使用讨论 » zend中怎样接受post过来的数组
《Programming PHP》第二版上市
2007-7-17 11:20 tracyxiaodan
zend中怎样接受post过来的数组

从页面上post过来一个数组,我在action中怎么接收那?

2007-7-17 13:45 tracyxiaodan
$_POST

2007-7-17 15:16 Haohappy
$_POST最直接了。

也可以在Controller中使用       
$this->getRequest()->getParam('postme');

相当于访问$_REQUEST。

getParam() retrieves more than user params

In order to do some of its work, getParam() actually retrieves from several sources. In order of priority, these include: user parameters set via setParam(), GET parameters, POST parameters, and finally COOKIE parameters. Be aware of this when pulling data via this method.

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.