PHP data returned to Flash in new window

Hi All,

I’m using php to get guestbook entries from a mysql table and send it to Flash to display in a dynamic textfield. I finally got it working using loadVariables, but not only does it display in the textfield but also opens another window and displays the results there.

How do I stop the new window from opening and just have it display in flash?

actionscript is

loadVariablesNum("guest_book.php", 0, "POST");

Php is


require "include.php";

$query = "SELECT * FROM tpbr_gb ORDER BY gb_date DESC;";
$result = mysql_query($query) or die (mysql_error()."gb_txt=Couldn't execute query: $query");

while($row = mysql_fetch_array($result)){
	$gb_entry_id = $row['gb_entry_id'];
	$gb_date = $row['gb_date'];
	$gb_fname = $row['gb_fname'];
	$gb_lname = $row['gb_lname'];
	$gb_message = $row['gb_message'];
	echo "<b>$gb_date<br>Posted by: $gb_fname $gb_lname</b><br>$gb_message<br><br>";