在url中添加一个带有http的参数并不能让我获取参数


Adding a parameter with http in the url doesn't let me to get the parameters

我正在使用外部web服务,它使用Iframe来显示我的页面。当它显示我的页面时,它会添加它的参数:

?assignmentId=asda&hitId=asda&workerId=asda&turkSubmitTo=https%3A%2F%2Fwww.mturk.com

我想获得assignmentId参数,但它不起作用。我所知道的是,在参数中删除https将使其工作。我该怎么做,为什么会这样?

我正在使用PHP5与Zend框架

您应该能够像通常访问参数一样访问它。

你不应该能够的唯一原因是,如果你有setParamSource只使用'POST'。

所以再次使用$this->getRequest()->getParam('assignmentId');

同样,如果这些都失败了,直接访问$_GET['assignmentId']

use this:

$assignmentId = $this->_getParam('assignmentId');

在这种情况下,如果参数通过post或通过get withdraw more到达!div;)