Insertion of php code in html code of an article
Posted: Fri Jan 27, 2012 5:05 pm
Hello
This is the first time I post a question in a forum. So I am still in its infancy. Also, I'm not a crack of Joomla!, PHP and many others.
I am looking for how to insert a php function in the html code of Joomla article.
A concrete example of my problem: When I insert <p><?php echo "This is a test";?></p> in the html code of an article, the string changes into
<p>
<!--?php echo "This is a test";?--></p>
In other words, the editor changes the php statement into an html comment.
Is there a way to solve this problem? If so, I would most appreciate a help for it ?
Thank you in advance for the help
Pierre Faniel
This is the first time I post a question in a forum. So I am still in its infancy. Also, I'm not a crack of Joomla!, PHP and many others.
I am looking for how to insert a php function in the html code of Joomla article.
A concrete example of my problem: When I insert <p><?php echo "This is a test";?></p> in the html code of an article, the string changes into
<p>
<!--?php echo "This is a test";?--></p>
In other words, the editor changes the php statement into an html comment.
Is there a way to solve this problem? If so, I would most appreciate a help for it ?
Thank you in advance for the help
Pierre Faniel