Will php work inside a text box?

7 posts by 4 authors in: Forums > CMS Builder
Last Post: January 26, 2010   (RSS)

By markr - January 26, 2010

Will php (e.g. a mysql query) work inside a text box?

Re: [markr] Will php work inside a text box?

By Djulia - January 26, 2010 - edited: January 26, 2010

Hi Markr,

For the update 2.00 :
http://www.interactivetools.com/tour/changelog.php

[font "Times New Roman"]MINOR CHANGES
- ...
- Editors: Text field descriptions can now contain PHP code
--------------------------------------------------------------------

Not still tested.

Djulia

Re: [Djulia] Will php work inside a text box?

By markr - January 26, 2010

Not sure re field description but not working as content.

Tried disabling auto-formatting.

Tried

{ ?>
some code
<?php}

Re: [markr] Will php work inside a text box?

By Dave - January 26, 2010

You can put PHP tags in the "Default Value" field under: Admin > Field Editor

But not in the content of the field itself.

What are you trying to accomplish?
Dave Edis - Senior Developer
interactivetools.com

Re: [Djulia] Will php work inside a text box?

By markr - January 26, 2010

I'm trying to publish a list of names using a simple db query but I'd likt to use the publishDate/removeDate fields to control when it goes up.

Re: [markr] Will php work inside a text box?

By Chris - January 26, 2010

Hi markr,

Can you please post the complete PHP source code for the viewer page you're working on?
All the best,
Chris