# Flash can't read php var when acquired from GET

**URL:** <https://forum.kirupa.com/t/flash-cant-read-php-var-when-acquired-from-get/307952>\
**Category:** programming\
**Created:** [April 14, 2010, 3:03am UTC](https://forum.kirupa.com/t/flash-cant-read-php-var-when-acquired-from-get/307952 "2010-04-14T03:03:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leo\_london](https://avatars.discourse-cdn.com/v4/letter/l/ac8455/32.png) [@leo\_london](https://forum.kirupa.com/u/leo_london)\
**Post date:** [April 14, 2010, 3:03am UTC](https://forum.kirupa.com/t/flash-cant-read-php-var-when-acquired-from-get/307952/1 "2010-04-14T03:03:37Z")

</div>

Ok, my problem is I have a PHP file that sends variables to another PHP file via $\_GET which contains a flash bit that must read these variables in order to work.  
The funny bit is if I manually declare the variable like so

$su=“smith”;  
echo “test=$su&”;

it works, but

$su=$\_GET[‘surname’];  
echo “test=$su&”;

won’t work.

Thanks in advance!  
Leo
