Page 1 of 1

using form to insert HTML code into page

Posted: Wed Oct 28, 2009 11:08 am
by Headwaters
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.

Re: using form to insert HTML code into page

Posted: Mon Nov 02, 2009 8:12 am
by Headwaters
Would "include" or "require" be the way to go here?