sendAndLoad problem.. a very basic one

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:


<?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:


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