How to store a form input value in the php variable??

I wrote a a program but it is not working??

We are happy you are here! You are more likely to get a useful response if you are explicit about what your project entails, giving a few more details might help someone give you a nudge in the right directions.