Page 1 of 1

<script> Tag Problem

Posted: Thu Apr 20, 2006 8:46 am
by bluesapphire
Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi there!
              I am facing problem that if I display/use/echo  CODE #1  in a php file then it doesn,t convert the $_SESSION variables into its values and it displays as it is in the link/url.

But in  CODE # 2 , the $_SESSION  variables are replaced with values.

CODE # 1

Code: Select all

<script language="JavaScript" src="http://pf.tradedoubler.com/pf/pf2?a=913664&cuid=88215&tid=4997&epi=<?php echo $_SESSION[UID].'-'.$_SESSION[USERNAME];?>&oe=ISO-8859-1&js=true" charset="ISO-8859-1" charset="ISO-8859-1"></script>

CODE # 2

Code: Select all

http://pf.tradedoubler.com/pf/pf2?a=913664&cuid=88215&tid=4997&epi=<?php echo $_SESSION[UID].'-'.$_SESSION[USERNAME];?>&oe=ISO-8859-1&js=true" charset="ISO-8859-1



Can any one have a solution in this regard

Thanks in advance


Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Thu Apr 20, 2006 11:16 am
by feyd
how are you echoing "code #1"?

As posted here, independant of other code, it would run the PHP code.