English 中文(简体)
Yii:app()->request没有获得_POST值美元
原标题:Yii::app()->request did not get $_POST values
  • 时间:2012-04-09 09:59:50
  •  标签:
  • post
  • yii

我是Yi框架的新鲜事,我对从我的表格中检索数据感到不安。 我在我的控制者写道:

$request = Yii::app()->request;
$form = $request->getPost( createProjectForm );
var_dump($form);

每当我提交,表格就是无效的。 然而,如果我有var($_POST),我仍拿到这些数值。 谁能告诉我什么是错的? 非常感谢你,并对我的坏英语表示歉意。

问题回答

暂无回答




相关问题
Programmatic HTML POST with C#.NET 1.1

I m trying to integrate the Moneris Hosted Pay Page into my .net 1.1 app with an iFrame. I ve done this many times before, but not with .net 1.1. I can t seem to find a good resource for doing a ...

Receive POST from External Form

I have a form on another website (using a different backend) that I want to be able to POST to my Rails application (on a different domain). How do I generate a valid authenticity token for the ...

Getting posted values in MVC PartialView

I ve created a PartialView which I render with Html.RenderPartial, passing the name of the view and the strongly-typed data item to bind to (below): <% Html.RenderPartial("...

Create new etherpad using PHP and CURL

I m trying to write a simple PHP script which automatically sets up new etherpads (see http://etherpad.com/). They don t have an API (yet) for creating new pads so I m trying to figure if I can do ...

How to get unselected checkbox?

I have three checkboxes like ch[0], ch[1] and ch[3] (sometimes i have more, or less, it s dinamic) and in PHP i want to get the unselected items also, like this: 0=yes,1=no,3=yes and so on. Can I ...

热门标签