Dec 7th, 2010, 9:22 AM
Hello,
I need to export some data in XML format and have a question. I'm very new to the Smarty engine, so please bear with me if this is a stupid question.
I have data that is repeating, for instance asking for the last three addresses someone has lived at. My web form will take the data in under the variables previousaddress, previouscity, previousstate, previouszip then previousaddress1, previouscity1, previousstate1, previouszip1, etc.
How do I then export all of this data from the form as
<previousaddress>
<address>
<city>
<state>
<zip>
</previousaddress>
For all of them? Any help or pointing to the proper documentation would be much appreciated!
Thank you!
I need to export some data in XML format and have a question. I'm very new to the Smarty engine, so please bear with me if this is a stupid question.
I have data that is repeating, for instance asking for the last three addresses someone has lived at. My web form will take the data in under the variables previousaddress, previouscity, previousstate, previouszip then previousaddress1, previouscity1, previousstate1, previouszip1, etc.
How do I then export all of this data from the form as
<previousaddress>
<address>
<city>
<state>
<zip>
</previousaddress>
For all of them? Any help or pointing to the proper documentation would be much appreciated!
Thank you!