garethhall Posted January 7, 2008 Share Posted January 7, 2008 Sorry for my ignorance but what i am trying to do here is way above my skills so please help me if you can I need to I need to post these transaction variables in xml from to another page here is the xml <Txn> <PostUsername>TestUsername</PostUsername> <PostPassword>TestPassword</PostPassword> <CardHolderName>A Anderson</CardHolderName> <CardNumber>4111111111111111</CardNumber> <Amount>1.23</Amount> <DateExpiry>0102</DateExpiry> <Cvc2>3456</Cvc2> <InputCurrency>NZD</InputCurrency> <TxnType>Purchase</TxnType> <TxnId>inv1278</TxnId> <MerchantReference>Test Transaction</MerchantReference> </Txn> So here is want i need to know how do i get php to this? Is it with xml_parser_create() I just don't even know how to approach this? Quote Link to comment Share on other sites More sharing options...
interpim Posted January 7, 2008 Share Posted January 7, 2008 if you want php to create it, then you could create the file by writing it as strings maybe a foreach statement fill the data in w/ your variables and save it to your xml file Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.