# \[PHP\] dynamic loadVariables

**URL:** <https://forum.kirupa.com/t/php-dynamic-loadvariables/6485>\
**Category:** flash\
**Created:** [October 8, 2002, 6:29pm UTC](https://forum.kirupa.com/t/php-dynamic-loadvariables/6485 "2002-10-08T18:29:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_esa](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@g\_esa](https://forum.kirupa.com/u/g_esa)\
**Post date:** [October 8, 2002, 6:29pm UTC](https://forum.kirupa.com/t/php-dynamic-loadvariables/6485/1 "2002-10-08T18:29:49Z")

</div>

Hi everyone,

I would like to know if it’s possible todo something like this:

loadVariables(“script.php?id=\<? echo “id”; ?\>”,0,“POST”);

// the echo thing is nonsense I know, but is it possible to paste the $id, that I’m trying to pass to the external script, from my adressbar (browser)?

Greetz

---

<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:** [October 8, 2002, 10:38pm UTC](https://forum.kirupa.com/t/php-dynamic-loadvariables/6485/2 "2002-10-08T22:38:11Z")

</div>

Try it… :cowboy:

---

<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:** [October 9, 2002, 2:17pm UTC](https://forum.kirupa.com/t/php-dynamic-loadvariables/6485/3 "2002-10-09T14:17:24Z")

</div>

loadVariables(“script.php?id=”,0,“POST”)

This AS will call the page script.php (assuming it’s in the same directory - as you haven’t provided a path to it) and attempt to pass an undefined value (you haven’t specified anything after the = ) to the (assumed to exist) variable named $id in the php page. If there are any other variables in the timeline from which the script is called, then it will attempt to pass these as well under separate headers (because you specified post) and any response generated in the php page (most likely an error in this instance) will be passed back to the main timeline (because you specified 0 as the location to load the variables).
