using form to insert HTML code into page
Posted: Wed Oct 28, 2009 11:08 am
I've a client who wants to embed some of his own YouTube videos on a site that uses a PHP-based admin. page with a form to manage content.
Basically he wants to copy and paste the embed link from YouTube into the source code of his web pages using a form on the admin page.
What would be the smart way to handle this with PHP? I assume a simple text field in the form could pass the string to the PHP script, but how would the script execute inserting the raw HTML?
Thanks.
Basically he wants to copy and paste the embed link from YouTube into the source code of his web pages using a form on the admin page.
What would be the smart way to handle this with PHP? I assume a simple text field in the form could pass the string to the PHP script, but how would the script execute inserting the raw HTML?
Thanks.