views:

91

answers:

1

Hi,

I want to fetch posted data. put I am using no form. the data is postet by a jquery script with method post and I would like to fetch it. I know how to fetch parameters

$id = $this->getRequest ()->getParam ( 'id', null );

and form values:

$message = $form->getValue ( 'message' );

however I want to access post data and not parameters or form values. any ideas?

+2  A: 

Here my solution;)

$this->getRequest()->getPost('id', null);
ArtWorkAD
Correct............
balupton
NULL is the default value, no need to specify it.
takeshin