Welcome to WebmasterWorld Guest from 3.228.24.192

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Output variable don't show

     
10:17 pm on Oct 14, 2011 (gmt 0)

New User

5+ Year Member

joined:Dec 7, 2010
posts: 35
votes: 2


I have variable like this:

$first_segment = "<script type='text/javascript' src='http://img.free2.thepluginz.com/player/flowplayer-3.2.6.min.js'></script>";

I want to store it in mysql table but can't pass it...

Echoing don't work eather...

echo $first_segment;

...give me nothing on the screen, can see it in a page source of output screen but that is not what I want.
12:09 am on Oct 15, 2011 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


can see it in a page source of output screen but that is not what I want.


It's supposed to be invisible in a browser page. Try


$first_segment = htmlentities("<script type='text/javascript' src='http://example.com/player/flowplayer-3.2.6.min.js'></script>");

echo $first_segment;

But of course, that will now no longer execute because the carats have been converted to &lt; and &gt;.
2:51 pm on Oct 16, 2011 (gmt 0)

New User

5+ Year Member

joined:Dec 7, 2010
posts: 35
votes: 2


Thanks, that is it more less what I needed.