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?
|
 |
 |
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 |
 |
 |
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'; ?>");
|
 |
 |
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
|
 |
 |