# Call PHP script with loadVariables

**URL:** <https://forum.kirupa.com/t/call-php-script-with-loadvariables/299529>\
**Category:** Uncategorized\
**Created:** [November 6, 2009, 7:49am UTC](https://forum.kirupa.com/t/call-php-script-with-loadvariables/299529 "2009-11-06T07:49:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wampiro\_UHA](https://avatars.discourse-cdn.com/v4/letter/w/eb9ed0/32.png) [@Wampiro\_UHA](https://forum.kirupa.com/u/Wampiro_UHA)\
**Post date:** [November 6, 2009, 7:49am UTC](https://forum.kirupa.com/t/call-php-script-with-loadvariables/299529/1 "2009-11-06T07:49:56Z")

</div>

I have a PHP-site/script called webshop.php with a $\_SESSION variable where I store id’s of products.  
I’ve tested the script via the browser with functions ?add\_item=11 etc… Everything works at that side.

Now, I want to call this script from a flash-movie and thought this little code could do the job:  
loadVariables("/webshop.php?add\_item=" + id, this);

But it doesn’t work. (I’ve also tried with a hardcoded id just to test, webshop.php?add\_item=11).

Anybody who can tell me what I do wrong?
