# Problem with sending values from html to php and swf1 to swf2

**URL:** <https://forum.kirupa.com/t/problem-with-sending-values-from-html-to-php-and-swf1-to-swf2/298786>\
**Category:** flash\
**Created:** [October 25, 2009, 5:39am UTC](https://forum.kirupa.com/t/problem-with-sending-values-from-html-to-php-and-swf1-to-swf2/298786 "2009-10-25T05:39:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silverfisken](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@Silverfisken](https://forum.kirupa.com/u/Silverfisken)\
**Post date:** [October 25, 2009, 5:39am UTC](https://forum.kirupa.com/t/problem-with-sending-values-from-html-to-php-and-swf1-to-swf2/298786/1 "2009-10-25T05:39:26Z")

</div>

I have a flash banner1.swf (AS2) on [www.domain1.com/banner.html](http://www.domain1.com/banner.html) (html-file)  
How do I send 4 values from banner.swf to banner2.swf?

- banner2.swf is on another domain
- send the values to [http://www.domain2.com/test.php](http://www.domain2.com/test.php) (php-file)
- And output the values into textfields on banner2.swf
- Inside banner2.swf I also want to make all the comparison and editing of the values.

I send the values in banner1.swf:

```auto
 
$envelope.carValue1 = value1;
$envelope.carValue2 = value2;
$envelope.carValue3 = value3;
$envelope.carValue4 = value4;
 _root.$envelope.send("http://www.domain2.com/test.php","_blank","POST");

```

Is there any way to only send the values directly to banner2.swf without using any PHP script in test.php?

The problem I get is that banner2.swf doesn’t catch any values.  
**How do recieve the sent values into banner2.swf?**  
Do I have to have banner1.swf in php-file and banner2.swf in php-file?  
Is there any difference if both the swf:s are on the same domain or not?
