Sending large data with loadvars?

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:


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?