# Flash embed with vars

**URL:** <https://forum.kirupa.com/t/flash-embed-with-vars/245144>\
**Category:** Uncategorized\
**Created:** [November 26, 2007, 9:29pm UTC](https://forum.kirupa.com/t/flash-embed-with-vars/245144 "2007-11-26T21:29:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![revin](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@revin](https://forum.kirupa.com/u/revin)\
**Post date:** [November 26, 2007, 9:29pm UTC](https://forum.kirupa.com/t/flash-embed-with-vars/245144/1 "2007-11-26T21:29:58Z")

</div>

```php

<?php
if (file_exists("pet".$_GET['bg'].".txt")){
print('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="108" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0" width="780" height="108">');
print('<param name="movie" value="test.swf?"'.$_GET['bg'].' />');
print('<param name="quality" value="high" />');
print('<param name="bgcolor" value="#397FC6" />');
print('<param src="test.swf" quality="high" width="780" height="108" name="My Flash Movie" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />');
print('<embed src="test.swf" width="780" height="108" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
print('</embed>');
print('</object>'); 
}else{
echo "sorries, the pet doesn't exist! :( "
}
    ?>

```

i want it to embed a flash file with a flashvar

like “pathtofile/test?bg=1”

the embedded flash file will show “1” in a dynamic text field

but it shows a blank page 😕

not sure whats happening
