# .upload send variables

**URL:** <https://forum.kirupa.com/t/upload-send-variables/266538>\
**Category:** flash\
**Created:** [July 21, 2008, 8:56pm UTC](https://forum.kirupa.com/t/upload-send-variables/266538 "2008-07-21T20:56:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omnislant](https://avatars.discourse-cdn.com/v4/letter/o/a88e57/32.png) [@omnislant](https://forum.kirupa.com/u/omnislant)\
**Post date:** [July 21, 2008, 8:56pm UTC](https://forum.kirupa.com/t/upload-send-variables/266538/1 "2008-07-21T20:56:24Z")

</div>

hey all,

using as2 to upload pictures to the server from flash using fileReference.upload. the script works fine, everything’s great except that i can’t send variables, which makes it impossible to tell php which directory to put the picture in, as well as which sql table to add the information to.

i tried adding “?memID=”+memID; to the query string:

var scriptLocation:String = “[http://websiteurl/uploader.php](http://websiteurl/uploader.php)”;

but that doesn’t seem to work with $memID = $\_GET[“memID”]; in the php file.

any suggestions on how to associate a variable with the uploaded pictures?!?

thanks in advance,  
omnislant
