A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: sending variable with the FileReference object, to php HELP!

  1. #1
    Senior Member Boombanguk's Avatar
    Join Date
    Jun 2000
    Posts
    1,194

    sending variable with the FileReference object, to php HELP!

    Hi,

    i'm using the FileReference object to upload an image to my server via php. But I need to send a variable with the upload to the php script (at the same time, cos it tells it what directory to put the image in), how would I do that? would I somehow include the variabel with the filereference object? or do I amend it somehow to the end of the .upload("uploadscript.php"); line??

    thanks for any help
    boombanguk

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    The solution is appending the variables to the url:
    code:

    my_fr.upload("uploadscript.php?myVar="+myVarValue) ;


    but that you already know.

    Just didn't want to leave this unanswered here.

    But please, don't post in more than one forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center