Code untested but I think this is what you mean :)

This would parse the string of values for you....

<cfscript>
        aKeyValue = listToArray(yourString, "&");
        for (i=1; i lte arrayLen(aKeyValue); i=i+1) {
                thisKey = listGetAt(aKeyValue[i], 1, "=");
                thisValue = listGetAt(aKeyValue[i], 2, "=");
                
                //Do something or store it somewhere            
        }
</cfscript>

Or a wee function...

<cfscript>
function getYourCookieValue(fullstring, keystring) {
        var aKeyValue, thisKey, thisValue;

        aKeyValue = listToArray(fullstring, "&");

        for (i=1; i lte arrayLen(aKeyValue); i=i+1) {
                thisKey = listGetAt(aKeyValue[i], 1, "=");
                if (thisKey eq keystring) { 
                        thisValue = listGetAt(aKeyValue[i], 2, "=");
        `               break;
                }       
        }
        return thisValue;
}
</script>

Anyway, time's up and I'm off to the pub.. Have a good weekend

-- 
Dc




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184147
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to