# sendAndLoad works locally but not on site

**URL:** <https://forum.kirupa.com/t/sendandload-works-locally-but-not-on-site/221272>\
**Category:** Uncategorized\
**Created:** [April 3, 2007, 1:41am UTC](https://forum.kirupa.com/t/sendandload-works-locally-but-not-on-site/221272 "2007-04-03T01:41:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eudora](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@eudora](https://forum.kirupa.com/u/eudora)\
**Post date:** [April 3, 2007, 1:41am UTC](https://forum.kirupa.com/t/sendandload-works-locally-but-not-on-site/221272/1 "2007-04-03T01:41:14Z")

</div>

Anyone have any idea on this?

My sendAndLoad

```php
temp.onPress = function() {
		if (this._parent.ratingsEnabled) {
			trace("going to update current subtitle rating");
			// show loading
			this.loadingScore._visible = true;
			// diable all rating once again...
			disableRating();
			var result_lv:LoadVars = new LoadVars();
			result_lv.onLoad = function(success:Boolean) {
				if (success) {
					trace("success " + result_lv.newScore);
					//wait for new score
					_root.ratingScore = result_lv.newScore;
					trace(_root.ratingScore);
					//update txt and update star
					updateMask();
					// removing loading
					loadingScore._visible = false;
				} else {
					trace("fail");
					//result_ta.text = "Error connecting to server.";
				}
			};
			var send_lv:LoadVars = new LoadVars();
			send_lv.score2 = this.tempNum;
			send_lv.id = 0;
			trace(send_lv.toString());
			send_lv.sendAndLoad("http://www.xxx.com/xx/xx/addRating.php", result_lv);
		}
	};

```

my php

```php

echo "&newScore=" . $newAvgScore;

```
