# Trouble loading data into dynamic box

**URL:** <https://forum.kirupa.com/t/trouble-loading-data-into-dynamic-box/225810>\
**Category:** flash\
**Created:** [May 15, 2007, 11:32pm UTC](https://forum.kirupa.com/t/trouble-loading-data-into-dynamic-box/225810 "2007-05-15T23:32:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stediamond](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@stediamond](https://forum.kirupa.com/u/stediamond)\
**Post date:** [May 15, 2007, 11:32pm UTC](https://forum.kirupa.com/t/trouble-loading-data-into-dynamic-box/225810/1 "2007-05-15T23:32:18Z")

</div>

Evening Guys,

I’ve created a piece of code that will send some info off to be inserted into a database and then it’s recordID will be returned to flash.

I’m trying to put the returned id into a dynamic text field but for some reason it’s not going.

I was wondering if someone could have alook at my code and let me know if I’m doing something wrong. The recordID is being returned to Flash as it’s appearing in the trace.

```auto

				insertInfo = new Array();
				insert = new LoadVars();
				insert.validate = "check";
				insert.userID = _global.UserID;
				insertInfo[0] = [interface_mc["AssetBox"+i].subID.text,_global.projID,interface_mc["AssetBox"+i].userContent.text,interface_mc["AssetBox"+i].contentType.text,interface_mc["AssetBox"+i]._x,interface_mc["AssetBox"+i]._y];
				insert.insertInfo = insertInfo[0];
				insert.sendAndLoad("http://localhost/php/insertData.php", insert,"POST");
				insert.onLoad = function()
				{
					interface_mc["AssetBox"+i].subID.text = insert.subID;
					trace("Insert Status: "+insert.feedback);
					trace("Sub: "+insert.subID);
				}

```
