Jump to content

user form to embed youtube video


picolo

Recommended Posts

hello :) this is my first post around here i am a bit noob with php and mysql.. :P 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

 

Link to comment
https://forums.phpfreaks.com/topic/43318-user-form-to-embed-youtube-video/
Share on other sites

  • 10 months later...

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.