[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 966
  • Last Modified:

Problems using '&' when sending mutliple flashvars

I'm trying to send a few vars to my .swf via flashvars. My page is xhtml, whihc is why I assume it's ignore all vars after the first ampersand, Here is the relevant line of code

flashvars="lang=main.php?category=Net%20IT&id=22"
flashvars="lang=main.php?category=Net%20IT&id=22"

In both cases only the first var is passed, any ideas??

TIA
0
civic86
Asked:
civic86
  • 3
  • 2
1 Solution
 
negatyveCommented:
There should be no problem with that, but try to reverse it:

flashvars="id=22&lang=main.php?category=Net%20IT"
0
 
sam85281Commented:
It seems to me that by defining it as flashvars="blah blah" your defining the whole string as one variable.

Try this:
<param name=FlashVars value="id=22&lang=main.php?category=Net IT">

-Sam
0
 
civic86Author Commented:
hmm, not too much luck, but maybe there is a misunderstanding.
I only want flash to receive one variable. The var name is lang, and I would like its value to be

main.php?category=Net%20IT&id=22

Thanks in advance.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
civic86Author Commented:
Could this be because I am using xhtml? Doesn't it have issues with using ampersand or something? I have tried with &amp; but to no avail.
0
 
negatyveCommented:
>I only want flash to receive one variable

Ah, ok, then you cannot use "&", because flash uses it as a variables separator. In this case, you should url encode your ampersand:

main.php?category=Net%20IT%26id=22



http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14143
0
 
civic86Author Commented:
Thanks very, very much
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now