rossmurphy Posted August 5, 2009 Share Posted August 5, 2009 So i have this returned from an apicall... $redirectform = '<?xml version="1.0" encoding="UTF-8"?> <form action="http://<serverip>/ecomgateway/PaymentProcessor" method="post" name="form1"> <input name="returnUrl" type="hidden" value="http://<serverip>/ecom-api/test/neteller41depositresult.jsp"/> <input name="userPostalCode" type="hidden" value="d8d8d8"/> <input name="accountId" type="hidden" value="1001"/> <input name="userFirstName" type="hidden" value="FirstName"/> <input name="userCity" type="hidden" value="ISDUHFGISDFH"/> <input name="userEmail" type="hidden" value="[email protected]"/> <input name="netellerAccount" type="hidden" value="123456789012"/> <input name="type" type="hidden" value="1"/> <input name="vendorId" type="hidden" value="NETELLER41"/> <input name="externalResponseUrl" type="hidden" value="http://<serverip>/ecom-api/parlayegateway.external"/> <input name="netellerSecureId" type="hidden" value="123456"/> <input name="userAddress" type="hidden" value="sdighiasdgh"/> <input name="siteId" type="hidden" value="2"/> <input name="userPhoneNumber" type="hidden" value="8928928922"/> <input name="userCountry" type="hidden" value="GB"/> <input name="userIpAddress" type="hidden" value="192.168.0.247"/> <input name="userProvince" type="hidden" value="ABE"/> <input name="userId" type="hidden" value="SIT3"/> <input name="testMode" type="hidden" value="true"/> <input name="userLastName" type="hidden" value="LastName"/> <input name="transactionId" type="hidden" value="100083"/> <input name="transactionStatus" type="hidden" value="PD"/> <input name="amount" type="hidden" value="10.0"/> <input name="currency" type="hidden" value="EUR"/> </form>
'; and i use this.. $test = html_entity_decode($redirectform); to decode the html entities.... is there any way i can get this into a simple xml array so i can go... $test->form['action'] or $test->form->input['name'] ?? Link to comment https://forums.phpfreaks.com/topic/168934-html_entity_decode-simplexml/ Share on other sites More sharing options...
rossmurphy Posted August 5, 2009 Author Share Posted August 5, 2009 OR how can i convert this to a normal form and submit it. Link to comment https://forums.phpfreaks.com/topic/168934-html_entity_decode-simplexml/#findComment-891508 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.