Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to POST XML?

Status
Not open for further replies.

Zych

IS-IT--Management
Apr 3, 2003
313
US
Hello All,

I am new to PHP but have done some ColdFusion in the past. I need to pass some XML with a POST function and I have no idea where to start. Does anybody now how to do this or some good links on this? I have tried google but have not found anything that really explains this.

Thx,

Zych
 
Can you give some more info. Do you need to do it via the browser or is the PHP accessing the web server directly.
Either way it can be done.
 
yup, more info...

Known is handfull, Unknown is worldfull
 
Well it is a little in depth but I will try and condense it. There is another site that will POST some XML to my site. I need to go through the XML and pull out some info and save it to a database. I do have a sample of this so I know the names of tags I need to save. This info is mostly information on who is trying to gain access. I then need to "reply" back some XML which would include a starting URL. In this URL I plan to include a reference to the database so I can pull up the info first passed in. I am not sure if at this time I need to POST the "reply" or just output it as a result. They would then take this URL and start a ecommerce session at my site.
At the end of the session I will then send back the entire shopping cart back as an XML POST to their site. They can then get the items approved and create a purchase order which will be emailed back to me.
I plan to hack up osCommerce to fit this application. Once I can get their info I will then move the data over to osCommerce, allow the shopping experience, then instead of paying and closing the transaction I would pass them back the info.

I hope this is not to confusing. If so ask as many questions as you like.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top