php output from form textarea
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 posted this at 04:00 — 24th June 2003.
He has: 4,048 posts
Joined: Aug 2000
Try using eval().
Busy posted this at 05:37 — 24th June 2003.
He has: 6,151 posts
Joined: May 2001
Looks like what I'm after, Thanks
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.