Posting XML with PHP

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
highway7
Forum Newbie
Posts: 5
Joined: Sat Apr 11, 2009 3:21 pm

Posting XML with PHP

Post by highway7 »

Hi,

I am attempting to integrate my clients shopping cart with an epdq system. What I need to do is submit the customers details (name, address, card number, order etc) as XML to the epdq URL (held on another server). This then processes the data and returns a success/error message as XML, and I need to process this data to display a confirm or error message.

As I am posting to another server, I can not use javascript so need to do this in PHP. What I am unsure of is how to post the XML to the external server behind the scenes (that is, without the browser directing there).

Any and all ideas are welcome.

Thanks
Post Reply