# loadVars.decode - insert array elements

**URL:** <https://forum.kirupa.com/t/loadvars-decode-insert-array-elements/169449>\
**Category:** flash\
**Created:** [November 16, 2005, 12:55pm UTC](https://forum.kirupa.com/t/loadvars-decode-insert-array-elements/169449 "2005-11-16T12:55:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![age6racer](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@age6racer](https://forum.kirupa.com/u/age6racer)\
**Post date:** [November 16, 2005, 12:55pm UTC](https://forum.kirupa.com/t/loadvars-decode-insert-array-elements/169449/1 "2005-11-16T12:55:26Z")

</div>

Hi,  
I need to insert 4 elements from my array “wingColors” into an URL string that i’m sending via the GET method to an .asp script.

Here’s the code I have:

```auto

postButton.onRelease = function() {
	var _lv = new LoadVars(); 
	_lv.decode("colour4=&colour3=&colour2=&colour1=");
	//trace(lv);
	 _lv.send("Colourform.asp", "_blank", "GET");
};

```

My questions is… how do I insert elements from my array into the string so that they are passed onto the asp script?

Can I do - \_lv.decode("colour4=wingColors[3] ??

That doesn’t seem to work.

I have to have this done by the end of today (about 4 hrs from now)

Please help!!

Dave.
