# PHP echo back to Flash Actionscript

**URL:** <https://forum.kirupa.com/t/php-echo-back-to-flash-actionscript/69871>\
**Category:** flash\
**Created:** [November 8, 2004, 10:39pm UTC](https://forum.kirupa.com/t/php-echo-back-to-flash-actionscript/69871 "2004-11-08T22:39:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TRPlace](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@TRPlace](https://forum.kirupa.com/u/TRPlace)\
**Post date:** [November 8, 2004, 10:39pm UTC](https://forum.kirupa.com/t/php-echo-back-to-flash-actionscript/69871/1 "2004-11-08T22:39:07Z")

</div>

Hey everybody.  
I am trying to do a simple php echo to flash. I want to do a loadvars.load(“tomyscript.php”,0,“POST”); and echo back an address…such as echo “&someFlashVar=http://someaddress.com/something”; in php and I want flash to be able to read it. I have sound very little on echo back to flash, maybe I am typing the wrong keywords.  
I have done this before, but this was my code:

```php
<?php
 	$returnvar=$testvar;
 	echo("returnvar=".$returnvar);
 ?>

```

I am not sure why that works and my other echo doesnt.  
I tried using that script for my idea too and it didnt work. If someone can clear this up for me that would be great, so I can understand why it’s not working and what it’s doing. Thanks again!
