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

 Display Label data from php variable

Print topic Send  topic

Author Message
precioso
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)

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

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

thanx
Dang
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");
$Label1->SetText($myvar);
$Label1->Show();

Hope this help.

   


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

Web Database

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

Home   |    Search   |    Members   |    Register   |    Login


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