CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCS - php code outside of a grid or record

Print topic Send  topic

Author Message
Jeroen
Posted: 06/28/2002, 12:59 PM

How can I put php code outside a grid or record? What I want is have a custom page title and title in a table.
I have a listbox where I choose a category. Then the grid will show all the products in that category. Now I want the page title to be the category name and also I want to show the category name somewhere in a table, outside the grid. What I need to know is where to put the php code in the document.

Jeroen
Chris K.
Posted: 06/28/2002, 2:26 PM

You can't put PHP code in the HTML as it's not executed, only loaded, parsed and processed by PHP page. You can put template variables in the HTML code, they look like {variable}. So you can put {catagory_name} and assign a value to it in some BeforeShow event using $Tpl->setvar("category_name",your_category_variable).

If you display category name somewhere else on the page value will be assigned automatically if control has the same name as your template variable.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.