Sending textfield input to server

Hey all,

I’ve got a textfield for the user to enter their name and I want to take the users name and sent it to my server so that at the end of the game I can call the name back. (And show the user their time)

The problem is that I’ve never done this before and haven’t a clue what I need to do. I’ve tried creating a php doc and saved some code in that and put it in the root folder on my website but nothing :\

I’ve also had a good look at every tutorial I can find on this but they all seem to not explain the php doc very well.

Any ideas?