-
Senior Member
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
-
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|