Page 1 of 1

using PHP code in FCKEditor

Posted: Thu Feb 01, 2007 10:52 am
by vdn
Hello

i made a PHP script that calculates something.
I wanted it on my webpage so i clicked add new content,

I made the php script with notepad so i copy/paste it into FCKEditor

but apparently FCKeditor changes

Is there a simple solution or am i trying it the wrong way?

Thanks in advance

Re: using PHP code in FCKEditor

Posted: Thu Feb 01, 2007 11:49 am
by cyberman
vdn wrote: Is there a simple solution
A very simple solution  ;D.

Put the source of your script inside a userdefined tag (e.g. named calculate and without ). Now you can call this snippet via {calculate} in FCK ...

Re: using PHP code in FCKEditor

Posted: Thu Feb 01, 2007 12:07 pm
by vdn
hooray !

for people reading this topic:
this could be handy