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
civic86Asked:
Who is Participating?
 
negatyveConnect With a Mentor Commented:
>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
 
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
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
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
 
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
 
civic86Author Commented:
Thanks very, very much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.