Question ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SuperStar
Forum Newbie
Posts: 5
Joined: Mon Feb 27, 2006 2:39 pm

Question ...

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It may be related to the arg_separator.output setting.
SuperStar
Forum Newbie
Posts: 5
Joined: Mon Feb 27, 2006 2:39 pm

Post 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 ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

were these written in different editors?
SuperStar
Forum Newbie
Posts: 5
Joined: Mon Feb 27, 2006 2:39 pm

Post by SuperStar »

both notepad :D
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Do you have an output handler or some other automatic process that may affect this? It certainly sounds like you would.
SuperStar
Forum Newbie
Posts: 5
Joined: Mon Feb 27, 2006 2:39 pm

Post 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?>'>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
SuperStar
Forum Newbie
Posts: 5
Joined: Mon Feb 27, 2006 2:39 pm

Post 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.
Post Reply