creating xml from php form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sukanya.paul
Forum Newbie
Posts: 9
Joined: Tue Dec 02, 2008 4:16 am

creating xml from php form

Post 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
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: creating xml from php form

Post 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
Post Reply