|
Posted by Bret Hughes on 02/18/05 09:03
On Fri, 2005-02-18 at 00:45, Tim Burgan wrote:
> Hello,
>
>
> On my page, all my content is updated via a textarea online.
>
> If I include PHP code embeded with my HTML in the textarea, the database
> converts it to plain text, instead of code that can be used. It doesn't
> convert < to < though, it's still in the database as <, just when
> it's read out again.. it don't work!
>
> I want to be able to call a random image script in PHP from the content
> that's stored in the DB.
>
> How do I do this?
>
How are you calling the page that retrieves the code? Does the file
name end in php? I suspect that simply echoing code to the browser
won't work because it's a string. Are you using eval?
Bret
[Back to original message]
|