Fetch form data value

I have a form in the views and in that I have a textbox. I want to fetch the value of the textbox into the controller php file. I tried using $_post[‘filename’] but it doesn’t work. how do I fetch the value of the textbox ?

you could have a look at the sourcecode of another controller using forms, e.g contact
there you will find the full working code for getting request parameters