symfony 1.4 how to get POST parameters?

Peter Long picture Peter Long · Aug 20, 2010 · Viewed 24.2k times · Source

I can get a parameter('id' for example) by $request->getParameter('id');

but if I use a form to POST the id, how could I get its value? $request->getParameter('id'); doesn't work.

Answer

Raoul Duke picture Raoul Duke · Aug 20, 2010

sfWebRequest has getPostParameter(name, default)