# Sending large data with loadvars?

**URL:** <https://forum.kirupa.com/t/sending-large-data-with-loadvars/284584>\
**Category:** flash\
**Created:** [March 20, 2009, 2:35pm UTC](https://forum.kirupa.com/t/sending-large-data-with-loadvars/284584 "2009-03-20T14:35:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![0x66FF00](https://avatars.discourse-cdn.com/v4/letter/0/dbc845/32.png) [@0x66FF00](https://forum.kirupa.com/u/0x66FF00)\
**Post date:** [March 20, 2009, 2:35pm UTC](https://forum.kirupa.com/t/sending-large-data-with-loadvars/284584/1 "2009-03-20T14:35:47Z")

</div>

Hi,

I’ve got a small problem with loadvars. I want to send data from Flash to PHP, which usually works well. But right now I need to send “larger” amounts of data around 10-20kb and loadvars doesn’t work anymore.

Using loadvars to open browser-windows seems to work fine, but I want everything to happen inside of flash.

The code is:

```auto

datastring = "1, 2, 3 (...) 4998, 4999, 5000"; // long text
loadstring = 'save.php?data='+datastring;

db = new LoadVars();
db.load(loadstring,0);
db.onLoad = function (success){
	trace("done");
}

```

Works fine with small text, with big text nothing happens. How to do this the right way?

Edit: Loadvars seems to work up until 4050 characters, 4051 and it doesn’t send anymore. But I can’t really split the query… Any alternatives?
