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
Share on other sites

  • 10 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.