Jump to content


Post/Receive XML data in PHP?

  • Please log in to reply
1 reply to this topic

#1 nsstudio

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 13 June 2006 - 12:08 AM

Hi everyone! I'm trying to integrate my PHP/mySQL member billing system with an XML payment gateway (specifically, Orbital Paymentech). They've given me sample XML request & response templates, but I'm just not sure how that fits into my PHP page. I have a PHP form where a user fills in their credit card info, but when they click "Submit" the data needs to be transmitted as XML, and then an XML response will be sent back to the PHP page that needs to be parsed.

Can anyone point me in the right direction? I assume this is simple, I've just never worked with XML in a PHP environment. Thanks for any help you can provide!

#2 poirot

  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 13 June 2006 - 12:32 AM

If your PHP has expat, you can use it's XML parser functions:

[a href=\"http://www.php.net/xml\" target=\"_blank\"]http://www.php.net/xml[/a]

I personally only used it to retrieve data, not to generate XML's though.
~ D Kuang

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users