passing simpleXML Object across Pages
I am using simpleXML objects with the commission junction Commission Details API. It is working properly and I am getting the commission details. Now I am displaying the report in one page and upon presssing the 'Add Report' button it has to be added to the DB. But I am not able to pass the simpleXML Object variable across the pages. I have tried to pass it as a hidden value after serialing it . But there is some issues with serialization of simpleXML Object and so I cannot use it. Please let me know how can I pass the value to other page. I mean how can I POST the object. I am using开发者_运维百科 this inside a custom Joomla component.
Well since XML is essentially a data interchange formmay why dont you just save it out as an xml string again with $xml->asXML()
and post that?
精彩评论