I have <input> tag in my page.i want to send it in text on server

I have two fields inside their own div.I want to send the data to a text file on server.can any1 help me?I don't have form or enough html know-how to change the div and input to form field to use some php scripts i found.