php output from form textarea

Busy's picture

He has: 6,151 posts

Joined: May 2001

How can I get PHP code to display as a script rather than the source when entered from a textarea form?
I have the form and display on the same page, at the moment the form input is going to database as well as displaying, saves fine, but the code displays as source. The other option is instead of the database, write to text files and include/require them

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Try using eval().

Busy's picture

He has: 6,151 posts

Joined: May 2001

Looks like what I'm after, Thanks Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.