# Submit (Post) DataGrid to a page

**URL:** <https://forum.kirupa.com/t/submit-post-datagrid-to-a-page/158144>\
**Category:** flash\
**Created:** [August 7, 2005, 5:12pm UTC](https://forum.kirupa.com/t/submit-post-datagrid-to-a-page/158144 "2005-08-07T17:12:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerium](https://avatars.discourse-cdn.com/v4/letter/z/85e7bf/32.png) [@zerium](https://forum.kirupa.com/u/zerium)\
**Post date:** [August 7, 2005, 5:12pm UTC](https://forum.kirupa.com/t/submit-post-datagrid-to-a-page/158144/1 "2005-08-07T17:12:07Z")

</div>

This should be fairly simple but I can’t find a way to post all the rows in a datagrid to a page. If I post just the object i get “object [object]” (of course).

I tried doing this (looping over the grid and creating dynamic variables) I can’t get it to set the variable though

```auto

function submitAllRecipients(eventObj:Object)
{
	var sendVars:LoadVars = new LoadVars();
	for(i=0; i<recipientGrid.length; i++)
	{
		var currentRow = recipientGrid.getItemAt(i);
		set("sendVars.Title" + i, currentRow.Title); 
		
	}
	sendVars.send("http://localhost/misc/address/dumpFlash.cfm", "POST");

}

```
