Jump to content

uploading youtube code


cs1h

Recommended Posts

Hi,

 

I am trying to create a form from which you can upload a link to a youtube video so that the video becomes embedded on a page.

 

I have the code being uploaded in a text area but what I want to do is remove any php (or other unwanted/dangerous) code that shouldn't be uploaded to the site.

 

Youtube code looks like this,

 

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/qHlgZHa2rNo&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qHlgZHa2rNo&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

 

Does anyone know how to do this?

 

Thanks,

Colin

Link to comment
https://forums.phpfreaks.com/topic/144485-uploading-youtube-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.