# Unable to post data

**URL:** <https://discourse.slimframework.com/t/unable-to-post-data/777>\
**Category:** Questions\
**Created:** [October 5, 2016, 5:53pm UTC](https://discourse.slimframework.com/t/unable-to-post-data/777 "2016-10-05T17:53:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit](https://avatars.discourse-cdn.com/v4/letter/a/cab0a1/32.png) [@ankit](https://discourse.slimframework.com/u/ankit)\
**Post date:** [October 5, 2016, 5:53pm UTC](https://discourse.slimframework.com/t/unable-to-post-data/777/1 "2016-10-05T17:53:19Z")

</div>

Hello all,

i am posting form-data from postman , and while getting data in php file it shows blank output ?  
i am getting data by this request $app-\>request()-\>params(‘user\_id’); and also tried $app-\>request()-\>post(‘user\_id’);

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [October 6, 2016, 6:04pm UTC](https://discourse.slimframework.com/t/unable-to-post-data/777/2 "2016-10-06T18:04:03Z")

</div>

Are you using Slim 3? If so, you probably want something like `$request->getParsedBody();` or `$request->$request->getAttribute('user_id');`. See the docs on [the Request object](http://www.slimframework.com/docs/objects/request.html).
