I'm doing a class assignment and what I'd like to propose is having an html form a user can fill in with their browser, when then click SUBMIT the data gets sent to the web server and put into an XML document that can later be viewed or used on other systesm (like a Mac, Linux, etc).
A friend told me the process would be;
html form data
goes to PHP script on web server
PHP script launches an XML parser
data gets written to XML document.
I'm not a programmer, but is this feasabile? And if possible, could someone explain it in laymen's terms? What would the PHP script look like and do? Which parser (he said to use DOM), how would it be invoked, and how would it grab the data and know where to put it in the XML form?
Lastly, do the name/values fields in the HTML form have to match the same tags as the XML document?
Thanks.