# sendAndLoad + serveur time

**URL:** <https://forum.kirupa.com/t/sendandload-serveur-time/129674>\
**Category:** Uncategorized\
**Created:** [November 26, 2004, 6:15pm UTC](https://forum.kirupa.com/t/sendandload-serveur-time/129674 "2004-11-26T18:15:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmerens](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bmerens](https://forum.kirupa.com/u/bmerens)\
**Post date:** [November 26, 2004, 6:15pm UTC](https://forum.kirupa.com/t/sendandload-serveur-time/129674/1 "2004-11-26T18:15:41Z")

</div>

hello again,

I use sendAndLoad to get variables from php but the problem is, flash wants to publish immediately the variable but the serveur takes 5 ( for exemple ) secondes to answer. Conclusion, no variable can be seen on the screen !!

I tried to make a king og movieclip of 6 secondes. but if the serveur take 8 secondes to answer the problem is still present

so how can I do this ???

here the AS I use to get the variable from php :

```
	sendvar = new LoadVars();
	reception_var = new LoadVars();
	sendvar.onLoad = function(success) {
		if (success) {
		trace(" ");
		} else {
		trace("didn't work");
		}
	};

```

sendvar.sendAndLoad(“add.php?kill=”+new Date().getTime(), reception\_var, “POST”);

thanks for your help =)
