CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Dynamic code in the middle of page

Print topic Send  topic

Author Message
mi3o

Posts: 3
Posted: 01/22/2008, 11:55 PM

Hi,
I would like to add dynamic code between two forms on one page. I tried to add code into before show event but it didn't solve my problem. What I actually need is print my code generated table in the middle of page, but problem is that when I use Before show event everything I print by using of echo is written right on the top of the page (and I need it in the middle).
I tried also insert php code inside HTML which didn't work as well.

Does anybody know how to solve my problem?
View profile  Send private message
mrachow


Posts: 509
Posted: 01/23/2008, 12:04 AM

Try if the following is fitting your needs.

Place a Label out of the toolbox' Form tab where you would like to see your output.
For the described purpose you have to set the Content property of that label to HTML.
_________________
Best regards,
Michael
View profile  Send private message
mi3o

Posts: 3
Posted: 01/23/2008, 12:25 AM

this works:
$Label1->SetValue("<input type='file'>");

but this not :-/ :
$Label1->SetValue("<?php echo 'aaa'; ?>");
View profile  Send private message
wkempees
Posted: 01/23/2008, 3:33 AM

I think we are very lucky that the second does not work
Quote :
$Label1->SetValue("<?php echo 'aaa'; ?>");
It would open up all sort of possible code insertions/injections
and leave us all with very unsafe sites.

You can however make up any valid html store that in a variable and use
that.
Walter

"mi3o" <mi3o@forum.codecharge> schreef in bericht
news:54796fa12bd319@news.codecharge.com...
> this works:
> $Label1->SetValue("<input type='file'>");
>
> but this not :-/ :
> $Label1->SetValue("<?php echo 'aaa'; ?>");
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

mi3o

Posts: 3
Posted: 01/23/2008, 3:55 AM

ya, i've understood, that's obvious
thanx for reply
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.

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.