Write data to a sever-side .xml file using either javascript or Php
===

I have a site based in html and javascript.

on the site, data is taken from a server-side .xml file. THIS WORKS PERFECT!

Also I want the user to be able to enter data into a field and have that data saved on another sever-side .xml file. I CAN'T GET THIS TO WORK! I have the data stored in variables and ready to pass to php but can't get any php code to work. (I am new to php)


I have changed the permissions of the .xml file on the sever to read and write.


I have been scanning the web for the last few days to try and get some code to work, but i have not got anything working yet.


Can Anyone help please?

