Page 1 of 1

Question ...

Posted: Mon Feb 27, 2006 2:41 pm
by SuperStar
I'm using a little bit flash and need to send it some variables ...

My code is this:


<param name="movie" value="preview.swf?name=<?=$name?>&type=<?=type?>">


But it outputs:


<param name="movie" value="preview.swf?name=the_name&type=the_type">


even if i write the & ... in the output it outputs: & ...
can somebody please tell me why and how can i fix this.

Posted: Mon Feb 27, 2006 2:48 pm
by feyd
It may be related to the arg_separator.output setting.

Posted: Mon Feb 27, 2006 2:52 pm
by SuperStar
Failed to mention ..

in that same file .. some lines up ..

i have something like this ...
<a href="view?cat=<?=$cat?>&page=<?=$page?>">
and this output's corect



any ideas ?

Posted: Mon Feb 27, 2006 3:27 pm
by feyd
were these written in different editors?

Posted: Mon Feb 27, 2006 3:31 pm
by SuperStar
both notepad :D

Posted: Mon Feb 27, 2006 3:35 pm
by feyd
Do you have an output handler or some other automatic process that may affect this? It certainly sounds like you would.

Posted: Mon Feb 27, 2006 3:37 pm
by SuperStar
nope ..

here is the complete code


<a href="preview.php?cat=<?=$cat?>&page=<?=$page?>&file=<?=$file?>" style="text-decoration: none">

...... ( html code ) ....

<?
$sndcmdline="cat=".$cat."&page=".$page."&file=".$file;
?>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/sh ... on=7,0,0,0" id="player" align="middle" height="18" width="115">
<param name="movie" value='preview.swf?<?=$sndcmdline?>'>

Posted: Mon Feb 27, 2006 3:42 pm
by feyd
Try removing the variances between the two implementations. Such as query string inline with the tag instead of separate and switching from single quotes for that attribute to double quotes. Sounds weird, but may affect it.

Posted: Mon Feb 27, 2006 3:45 pm
by SuperStar
okey ... i don`t know why i did this but i experimented a little so ...


in Mozzila at source code of the page the & is show as : &

in IE at source code of the page the & is &.



PS: in the link .. at href it works even if & is sourced as & ... but in the properties of the movie if the & is sourced as & it doesn`t work.