Save textfield value to xml

Not sure thiis the right foum but:

I’m looking for a way to send the variable stored in a text field to a textfile on the server and save it there.

ie the user enters a name and a number into 2 text fields, this is then sent to a textfile (or xml file, etc) and is storedin there for use later.

would this be using loadvars or something?

Any ideas or links to tutorials?

Sean