Java script and php code is not working : I have simple code wirh html, javascript and php. I am trying to pass variable from html to php through ajax. 

A text box appears on screen with button . user inputs in the text field and clicks the button. field text should appear beloe the field then. But in my case nothing happens on clicking the button. I am posting my code below . There are three files i have made.

