Activeideas,web development
 


FileReference


First of all we need to add all required var in a single variable called " $mystr" in my example and all variables are separated by (comma's), so we can archive easily in upload page. after having all the required var in single variable we will encode it using php function "base64_encode();" this function let us having all values in a single var. we did encode bcause having more than one var and "&" in url cause problem to void that problem we have to encode .

Eg:


In the example below we use the variable "$mystr" along with the destination upload.php file which will be used by the flash file. so to use the variable we have to write like this upload.php?anyname=<? echo $mystr; ?>

Eg:

we have to use "$mystr" in 2 places so in IE and Firefox flash will get our variable to pass it along the uploading file. in my example i m loading var Action in flash file(swf) and using that as my uploading file url .

Eg:

in the destination "upload.php" file use code like below to get all the stored values in $mystr by decoding the variable called $mystr using php function bas64_decode(); this will return the format in which we did store values in variable, now to separate all values we need to use php function explode(); because we did use (comma's) , to separate all values on the time to store values in $mystr so again we need to use same separator to separate all values . explode() will return array and we can access each value in the same manor in which we stored .

Eg:
 



 

Leave a Reply