# sendAndLoad problem.. a very basic one

**URL:** <https://forum.kirupa.com/t/sendandload-problem-a-very-basic-one/182294>\
**Category:** Uncategorized\
**Created:** [March 16, 2006, 11:48pm UTC](https://forum.kirupa.com/t/sendandload-problem-a-very-basic-one/182294 "2006-03-16T23:48:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockstar](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rockstar](https://forum.kirupa.com/u/Rockstar)\
**Post date:** [March 16, 2006, 11:48pm UTC](https://forum.kirupa.com/t/sendandload-problem-a-very-basic-one/182294/1 "2006-03-16T23:48:21Z")

</div>

i

I’m learning php now… it’s fun but at the same time very frustrating.  
So I’m trying to send and receive data to/from flash and php, but I can’t receive any data from php.  
Other info: I’m running this locally and the path is correct.

Please take a look at these codes… let me know if I do wrong.

From PHP  
Code:

```auto

<?php

require( "../weeklybread.php" );
	$query = mysql_query( "SELECT * FROM $table" );

	while($myrow = mysql_fetch_array( $query )) {
		$message = ($myrow['message']);
		$message = trim($message);
		$id = ($myrow['id']);
		$subject = ($myrow['subject']);
		
	}
	echo ("&subject=". $subject);
	
?>

```

From Actionscript 2.0  
Code:

```auto

myVars = new LoadVars();
myVars_received = new LoadVars();
myVars.onLoad = function(success) {
	if (success) {
		_root.title_txt.text = myVars_received.subject;	
	}
};
myVars.sendAndLoad("http://localhost/gii_lite/display2.php", myVars_received, "POST");

```

so yea I can’t see anything inside the text field, I can’t even trace it… it says UNDEFINED in 20px caps… hehe jk… yea but it says undefined.

Thank you… apprceciate it.

Ivan
