XML + PHP script help!?

leotheruler2000

New member
I want to make a form which once you send it saves the entered data into an xml document and auto updates the page to display it, I guess something along the lines of what yahoo answers looks like.

Anyone have a template of such or know the codes for it?
 
I don't know any template, but isn't too hard.

Just create the form as you would probably do and after is posted you will need to save the data in some form.

If you want to save as a xml file directly you can, after post and validation, open a new text file with a unique.xml name and create a xml document on it (if is the first post). Then is just a matter to add the nodes into the xml file.

You can use PHP simpleXML to do that. Is like manipulating arrays in object form.

Have fun and good luck.
 
Back
Top