# Swf and php problem

**URL:** <https://forum.kirupa.com/t/swf-and-php-problem/99186>\
**Category:** Uncategorized\
**Created:** [January 15, 2004, 6:59pm UTC](https://forum.kirupa.com/t/swf-and-php-problem/99186 "2004-01-15T18:59:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_exiled](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@the\_exiled](https://forum.kirupa.com/u/the_exiled)\
**Post date:** [January 15, 2004, 6:59pm UTC](https://forum.kirupa.com/t/swf-and-php-problem/99186/1 "2004-01-15T18:59:09Z")

</div>

Hi. I’m relatively new to Actionscripting and i can’t seem to figure this out.  
We’ve developed a small app that allows users to check messages sent to them when they log in.

i recently updated the navbar to be a flash navbar, whose buttons call the appropriate html pages. the problem i am having is that i need the flash navbar to display the name of the person who is logged in.

i created a dynamic text field, gave it the variable name “myVar”  
do i need an instance name for it as well??  
turned it into a symbol (movie) and dropped this code in:

onClipEvent (load) {  
loadVariables(“[http://website.net/website/welcomeName.php](http://website.net/website/welcomeName.php)”, this, “GET”);  
}

the corresponding php file is named “welcomeName.php” and looks like this:

\<?php header( “Content-type: application/x-www-urlform-encoded”); $user\_name =“blah”; print “myVar=” . urlencode($user\_name);

i can’t get this to work. the whole app is a php based thing, running on a php server.  
the funny thing is, this was working on an older version of flashplayer, but not in version 7.  
what am i doing wrong?  
is there a different way to do this?

any help would be great.  
thanks.  
the\_exiled.
