Ok, I just got approved for an affiliate program that allows me to process the form on my website and submit it using XML. They gave me a sample XML form that is submitted by javascript. But I am not sure of how to use it on my site. I am using PHP but their example is an XML file and I am not sure of how to use it.

If anyone could give me some pointers or examples that would help very much.

Here is the sample XML file they gave me:


Code XML:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wshRequest SYSTEM "http://www.network.com/NT/wshRequest.dtd">
 
<wshRequest>
  <type>Order</type> 
  <proxyUserId>xmlNETWORK</proxyUserId> 
<partner>
  <name>NetworkName</name> 
  <uniqueId>5555-5555-555</uniqueId> 
  <password>52315</password> 
  </partner>
<customer>
  <firstName>Joe</firstName> 
  <lastName>Brown</lastName> 
  <email>JoeBrown@yahoo.com</email> 
  </customer>
<serviceAddress>
  <addressLine1>1234 Main Avenue</addressLine1> 
  <city>Anytown</city> 
  <state>MI</state> 
  <zip>48706</zip> 
  <firstName>Joe</firstName> 
  <lastName>Brown</lastName> 
  <phone1area>714</phone1area> 
  <phone1exch>999</phone1exch> 
  <phone1suffix>2936</phone1suffix> 
  <phone2area>714</phone2area> 
  <phone2exch>452</phone2exch> 
  <phone2suffix>1234</phone2suffix> 
  </serviceAddress>
<order>
<item>
  <productName>Window Cleaning</productName> 
<property>
  <name>adName</name> 
  <value>mysite.com</value> 
  </property>
<property>
  <name>oiPropLeadPlacementBrand</name> 
  <value>WC</value> 
  </property>
<property>
  <name>oiPropResponseVehicle</name> 
  <value>online</value> 
  </property>
<property>
  <name>oiPropResultsEntity</name> 
  <value>NCD</value> 
  </property>
  </item>
  </order>
  </wshRequest>

I did see something similar found here http://www.webmaster-talk.com/php-fo...-post-xml.html

But I still can't make heads or tails of it.