# sendAndLoad problem with answer from server

**URL:** <https://forum.kirupa.com/t/sendandload-problem-with-answer-from-server/192734>\
**Category:** flash\
**Created:** [June 30, 2006, 4:30pm UTC](https://forum.kirupa.com/t/sendandload-problem-with-answer-from-server/192734 "2006-06-30T16:30:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jankratochvil](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jankratochvil/32/566_2.png) [@jankratochvil](https://forum.kirupa.com/u/jankratochvil)\
**Post date:** [June 30, 2006, 4:30pm UTC](https://forum.kirupa.com/t/sendandload-problem-with-answer-from-server/192734/1 "2006-06-30T16:30:24Z")

</div>

I tested one of my old pages, where I now use sendAndLoad method.  
From this site I dont recieve success == true.  
:?: is how can I find out, what problem with server is.  
From other site - other server, which I tested I recieve the success == true.

```auto
var submitListener:Object = new Object ();
submitListener.click = function (evt:Object)
{
	var result_lv:LoadVars = new LoadVars ();
	result_lv.onLoad = function (success:Boolean)
	{
		if (success)
		{
			result_ta.text = "Hello";
		}
		else
		{
			result_ta.text = "Error connecting to server.";
		}
	};
	var send_lv:LoadVars = new LoadVars ();
	send_lv.name = name_ti.text;
	send_lv.sendAndLoad ("http://www.penzionuhradku.cz", result_lv, "POST");
};
submit_button.addEventListener ("click", submitListener);

```
