# PHP data returned to Flash in new window

**URL:** https://forum.kirupa.com/t/php-data-returned-to-flash-in-new-window/133280
**Category:** Uncategorized
**Created:** [January 7, 2005, 3:45am UTC](https://forum.kirupa.com/t/php-data-returned-to-flash-in-new-window/133280 "2005-01-07T03:45:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Carixpig](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/carixpig/32/304_2.png) [@Carixpig](https://forum.kirupa.com/u/Carixpig)
#### Post date: [January 7, 2005, 3:45am UTC](https://forum.kirupa.com/t/php-data-returned-to-flash-in-new-window/133280/1 "2005-01-07T03:45:52Z")

</div>

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

```auto

on(release){
loadVariablesNum("guest_book.php", 0, "POST");
}

```

Php is

```php
gb_txt=
<?php

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>";
}

?>

```

Thanks  
C
