Re: PHP | Flash Query String

From: Date: Sun, 16 Jul 2006 21:32:46 +0000
Subject: Re: PHP | Flash Query String
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239521@lists.php.net to get a copy of this message
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 >

« previous php.general (#239521) next »