CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 [SOLVED]Embed PHP script

Print topic Send  topic

Author Message
mauro78

Posts: 3
Posted: 06/21/2010, 8:39 AM

Hi all,
I'm trying to embed a php script to the HTML page generated from CodeCharge studio:

I've try to put this simple script in the HTML page:

<?
php $var = 5;
echo($var);
?>

but the output seems not to recognize the php script.
Do I miss something?
What's the best way to embed those simple script in HTML pages of CCS 4??

Regards

View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 06/21/2010, 7:39 PM

mauro78,
On your html page click on the Events tab in the Properties section of the IDE. Select the event Before Show. Enter your PHP code there and give the page a try. It should work for you now.

When you get some time take a look at these links:
http://docs.codecharge.com/studio40/html/index.html?htt...ceCode.html?toc

http://docs.codecharge.com/studio40/html/index.html?htt...ceCode.html?toc

View profile  Send private message
mauro78

Posts: 3
Posted: 06/22/2010, 3:36 AM

Quote mamboBROWN:
mauro78,
On your html page click on the Events tab in the Properties section of the IDE. Select the event Before Show. Enter your PHP code there and give the page a try. It should work for you now.

When you get some time take a look at these links:
http://docs.codecharge.com/studio40/html/index.html?htt...ceCode.html?toc

http://docs.codecharge.com/studio40/html/index.html?htt...ceCode.html?toc


Thank you I think I solved my problem: I've put labels on HTML page and then I update their text with some php code.

Best Regards
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 06/22/2010, 7:00 PM

mauro78,
Please add [RESOLVED] or [SOLVED] to the thread title. Thanks.
View profile  Send private message

Add new topic Subscribe to topic   


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.