# Send Var from URL onLoad

**URL:** <https://forum.kirupa.com/t/send-var-from-url-onload/225349>\
**Category:** flash\
**Created:** [May 10, 2007, 9:26pm UTC](https://forum.kirupa.com/t/send-var-from-url-onload/225349 "2007-05-10T21:26:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)\
**Post date:** [May 10, 2007, 9:26pm UTC](https://forum.kirupa.com/t/send-var-from-url-onload/225349/1 "2007-05-10T21:26:06Z")

</div>

I’m driving myself nuts with this one

How do I send a variable from the url (eg [www.exmplesite.com/loadlocation.php?variable=home](http://www.exmplesite.com/loadlocation.php?variable=home)) to an embedded swf in that php?

In other words, how do I get the embedded swf to load the variable from the URL. It needs to pass it, which I’m trying to accomplish via Javascript. I just can’t figure it out.

Any ideas?
