Jump to content

PHP code in textarea


adamf

Recommended Posts

I have a text area on a CMS I own but cannot get php tags/code to be saved into the database and ran when visiting the saved page online.

 

Example code: <?php include "xxxx.php"; ?>

 

Is it common for text area's to not save/display php or is there a simple solution around this?

 

Your advise is much appreciated...

 

Adam

Link to comment
https://forums.phpfreaks.com/topic/62344-php-code-in-textarea/
Share on other sites

You'll need the eval() function to evaluate any php code. However, if the code is not even making it to the database, you have other problems and we might need to see some code.

 

Edit: SA is quite possibly right. I assumed you are using your own CMS however.

Link to comment
https://forums.phpfreaks.com/topic/62344-php-code-in-textarea/#findComment-310240
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.