cs1h Posted February 9, 2009 Share Posted February 9, 2009 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 More sharing options...
Mchl Posted February 9, 2009 Share Posted February 9, 2009 Create form that just takes video ID ( qHlgZHa2rNo ) and let the script create the HTML Link to comment https://forums.phpfreaks.com/topic/144485-uploading-youtube-code/#findComment-758145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.