开发者

passing simpleXML Object across Pages

开发者 https://www.devze.com 2023-03-23 11:33 出处:网络
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 pr

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号