CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Display Label data from php variable

Print topic Send  topic

Author Message
Posted: 01/02/2004, 6:08 AM

Its a very simple question but my problem is with the templates setup.

i need to diplay the value of a variable assigned in my php code in the html page (not in a form or grid, just the title)

$myvar = 'Welcome ' . Session("UserID");

how do i display the result of $myvar on the top of my page ?

Posted: 01/06/2004, 4:56 AM

Put an Label control on your design and view code. Search for your Label name (default is Label1 or something like that).
You may be see:

$Label1 = new clsControl(ccsLabel, "Label1", "Label1", ccsText, "", CCGetRequestParam("Label1", ccsGet));

put the following code in //Show Page. (searh for "Show Page", it near to end of file):

$myvar = 'Welcome ' . Session("UserID");

Hope this help.


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

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