# Passing values from php to flash 5

**URL:** <https://forum.kirupa.com/t/passing-values-from-php-to-flash-5/979>\
**Category:** Uncategorized\
**Created:** [August 5, 2002, 12:05pm UTC](https://forum.kirupa.com/t/passing-values-from-php-to-flash-5/979 "2002-08-05T12:05:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob\_g](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@bob\_g](https://forum.kirupa.com/u/bob_g)\
**Post date:** [August 5, 2002, 12:05pm UTC](https://forum.kirupa.com/t/passing-values-from-php-to-flash-5/979/1 "2002-08-05T12:05:52Z")

</div>

Hi, can someone please help me. I need to know how to get my graphical PHP counter’s value from PHP into flash 5.

thanks…  
BOB.G

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2002, 3:00pm UTC](https://forum.kirupa.com/t/passing-values-from-php-to-flash-5/979/2 "2002-08-05T15:00:07Z")

</div>

you have to do a loadVars() from Flash, perhaps with a get to your php page.

in php, you have to use the print command to p\*\*\* the variable to flash. You should also do your . urlencode() on your print statement.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 28, 2002, 10:17pm UTC](https://forum.kirupa.com/t/passing-values-from-php-to-flash-5/979/3 "2002-08-28T22:17:41Z")

</div>

I’m probably not going to be much F-in’ help, but maybe you can translate this into PHP…I’m using ASP. If you want to transfer values…you can use either LoadVariables() or you could stick those dynamic values in the query string of of the Flash “src”. It’s whatever…could even use fscommand or XML them in. Personally, I enjoy using XML, but who cares what I think, right? 😛 Not that I was much help here, aye?

If it’s one or two values…you could just attach them to the query string…kinda like this…

src=“wurd.swf?action=\<% Response.write myVariable %\>”

Of course this is ASP spitting out what variable to use. I don’t know (nor care) what PHP uses, but I think you could translate it.

Well, hope this helped…if not…man, sorry.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 7:44am UTC](https://forum.kirupa.com/t/passing-values-from-php-to-flash-5/979/4 "2002-08-29T07:44:45Z")

</div>

Careful Inigo, loadVars is Flash MX.

About your question, did you check the tutorial on this site?

pom :asian:
