Page 1 of 1

creating xml from php form

Posted: Tue Dec 02, 2008 4:17 am
by sukanya.paul
hi,
i have a form which when submitted should create an xml file with certain data being passed from the form.after that the xml file will be passed to an external url which should be able to collect the data from the xml file.
i have no idea how to do this.:banghead:
Can some1 please help.
Thanks a lot.
Suk

Re: creating xml from php form

Posted: Tue Dec 02, 2008 11:40 am
by novice4eva
look into DOM XML functions or i think if it is to be written in file, go with simple file_put_contents() with content containing proper XML header(<?xml version="1.0"?>), it should work