Converting Form Data to XML
I'm using PHP in my contact form to send an email to but I need the output to be emailed in XML format. How do I convert the form data to XML? I tried looking around for this but the only helpful information I could find was for ASP开发者_如何学编程. Thanks!
http://ie.php.net/manual/en/book.simplexml.php - should have you up and running in no time.
I prefer XMLWriter, works great in my RSS parsers.
For a more detailed help, you need to be more specific in your question.
Why do you need to send it as XML? and how does it need to be sent?
you can loop through your post variables and create xml items for each post variable.
精彩评论