Re: PHP | Flash Query String

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sunnrunner wrote:
> Hello,
> 
> I have a button flash file. This file needs two parameters that are passed
> in through the query string. 
> 
> Here's my query string. 
> navButtons.swf?myURL={$menu_channel_id[menu]}&buttonLabel={$menu_text[menu]}
> 
> here is the URL that is being passed in
> 
> domain.com/index.php?c=21&a=35&w=2&r=Y
> 
> the ampersands are making flash think these are separate variables to pass
> into flash. Is there a way to make flash send in the above link as a whole
> without chopping it up into several separate variables.

urlencode the url ...

echo "navButtons.swf?myURL=",
     urlencode(domain.com/index.php?c=21&a=35&w=2&r=Y),
     "&buttonLabel=ClickMe";

chances are you will have urldecode the value of myURL inside the flash file
in order to use.

> 
> I would use some other method besides a query string but, I really need this
> to work with it.
> 
> Hope that makes sense!
> 
> Thanks,
> T
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux