Given the following string in Coldfusion:

ul[0][id]=main1 &ul[0][children][0][id]=child2 &ul[0][children][0][class]= 
&ul[1][id]=main3 &ul[2][id]=main4 &ul[3][id]=main5 
I'm looking for help understanding how to use the string above to create an 
array, which will then allow be to later build out the following: 

<UL>
        <LI id="main1">
                Lorem ipsum dolor sit amet, consectetur 
                <UL>
                        <LI id="child2">
                                In hac habitasse platea dictumst. 
                                <UL></UL>
                        </LI>
                </UL>
        </LI>
        <LI id="main3">
                In hac habitasse platea dictumst. 
                <UL></UL>
        </LI>
        <LI id="main4">
                In hac habitasse platea dictumst. 
                <UL></UL>
        </LI>
        <LI id="main5">
                In hac habitasse platea dictumst. 
                <UL></UL>
        </LI>
</UL>


Thanks for any help! 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333828
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to