phpjitsu Posted November 26, 2007 Share Posted November 26, 2007 I suspect there is a very easy answer, but am having a hard time finding it. I have a fairly simple PHP page that spits out a bunch of html with a youtube video in the middle. The youtube URL is fetched from the database but something is wrong. It doesnt show in the browser and when I view the page src code from the browser, it has changed characters like & to &. Example. ----------------- <embed src="<?php echo $datarecord->youtubeURL;?>&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed> This gets mangled and looks like this in the browser: <embed src=" &rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed> What causes this? How do I stop it? Quote Link to comment Share on other sites More sharing options...
Orio Posted November 26, 2007 Share Posted November 26, 2007 Use urldecode() Orio. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.