can upload script read flashVars ?

This is a discussion on can upload script read flashVars ? within the Macromedia Flash forums in Adobe Tools category; Hello, Does anyone know when you run a upload script that you can simultanious send variables from flash to php? And in the php script you would pick this flash var with: $pathname = $HTTP_POST_VARS['myfoldername']; I noticed there was only one line of code in the flash actionscript where the upload.php script is being triggerd. file.upload(upload.php); So i tried to put behind the url script ?myfoldername='tempfolder' But that does not work.. Is there another way to send a variable to the upload script? Regards,...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-11-2008, 07:40 AM
Michealnl
Guest
 
Default can upload script read flashVars ?

Hello,
Does anyone know when you run a upload script that you can simultanious send
variables from
flash to php?

And in the php script you would pick this flash var with:
$pathname = $HTTP_POST_VARS['myfoldername'];

I noticed there was only one line of code in the flash actionscript where the
upload.php script is being
triggerd. file.upload(upload.php);

So i tried to put behind the url script ?myfoldername='tempfolder'

But that does not work..

Is there another way to send a variable to the upload script?

Regards,


Reply With Quote
  #2  
Old 11-11-2008, 10:39 AM
kglad
Guest
 
Default Re: can upload script read flashVars ?

in php you should use GET to extract the variable/value:

$pathname=$_GET['myfoldername'];
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:56 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.