Just a thought.. it might be better to control the output a little more. I
assume if you're letting them submit the embed code that you're turning
around and just displaying what they posted.
It might be easier for the user and more secure if you have them submit
either the full youtube URL:
http://www.youtube.com/watch?v=Tq8Yw19bn7Q
and/or you can have people just submit the video ID:
Tq8Yw19bn7Q
Either way, that's all you need to create your own tag without
trusting that they're not going to submit something bad with their .
There are things to facilitate YouTube link posting in various systems
including Joomla and many subcomponents, phpBB, probably most other forum
software. If you're using something like that, you might search around.
-TG
- Original Message -
From: Don Don <[EMAIL PROTECTED]>
To: PHP List
Date: Thu, 20 Dec 2007 08:20:16 -0800 (PST)
Subject: [PHP] Best way to allow users to post youtube video links ?
> I want to allow people to be able to post links to videos on youtube. I've
> implemented it in a certain way by allowing them to copy the tag
> into a textarea and then submit the form. I pick up the form data,
> validate and display on the site.
>
> Is there any better way to do this or php plugins out there ?
>
> Cheers
>
> Don.
>
>
> -
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php