Please enter your user name and password below.
I want to add the following line to some staticpages
instead this is being converted to:
which of course will not be recognized by the php parser as a line of code.
Is there no way round this.
ex University of San Carlos Cebu | Sta Tomas Manila
Proudly Visayan now living in Europe
Before posting my query I had read the other forum posts regarding php in static pages none of the advice helped or solved the query I had, hence my posting.
I have found a workaround which seems to work whether it is the right solution I do not know.
I set up an autotag with the name counter and was able to put
as the first line in the static page it does seem to work which is suppose all I can ask - if there is a better solution please post so I can implement it.
As I recall, when "execute PHP" is on in a static page it is all treated as PHP. I think you need to close the PHP tag, or omit the opening tag if PHP is your first item. For instance:
Thanks Lee will give it a try as
as the first item on the first line and see how it goes.
Lee it prints the line on screen could it be something to do with Advanced Editor and that is changing the syntax of the line. it is putting a "<p>" in front of the line and the same behind.
It is even wrapping the Autotag I put in but does seem to work, do you think I would be better keep that as a Q&D fix for the problem.
You can't use the advanced editor to embed PHP code. The advanced editor is designed to take what you type and display it, so it will translate <? to >?. You must use the text HTML editor when you want to embed PHP code into a static page.
glFusion - Enhanced Content Management
That answers that so I best stick with my Q&D autotag fix as it seems to work - win some lose some.