picolo Posted March 19, 2007 Share Posted March 19, 2007 hello this is my first post around here i am a bit noob with php and mysql.. anyway i am creating a form working with database (i can do this ) But i want a field in this form where users can put the embed code from youtube(google video, dailymotion, etc...) for example <object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/nn3ySU5PNsg"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/nn3ySU5PNsg" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object> (this code will be published after validation) i would like to know the best way to do this and in a secure way if possible (because allowing user to submit html is a security issue) any suggestions are welcome (hope this topic have not been discussed over and over(i search in the forums but didnt found what i wanted..)) hope i was clear enough.. thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/43318-user-form-to-embed-youtube-video/ Share on other sites More sharing options...
alexville Posted February 2, 2008 Share Posted February 2, 2008 bump, can someone help us out, i want to see how to do it also! Quote Link to comment https://forums.phpfreaks.com/topic/43318-user-form-to-embed-youtube-video/#findComment-456241 Share on other sites More sharing options...
The Little Guy Posted February 2, 2008 Share Posted February 2, 2008 What do you plan to do with the code (when published)? and what do you want to validate? Quote Link to comment https://forums.phpfreaks.com/topic/43318-user-form-to-embed-youtube-video/#findComment-456247 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.