Remove the json_encode from the php script
Put the text area and button into a form