tags:

views:

128

answers:

1

i got an iframe in an echo:

<iframe width='100%' height='100'>$content</iframe>
$content = eval ( "\$bugs = \"" . gettemplate ('bugs') . "\";" );

but it doesnt work.

how can i use the eval function from php to show the page in an iframe?

thnx!

A: 

Refer the following code

<?php
$string = 'cup';
$name = 'coffee';
$str = 'This is a $string with my $name in it.';
echo $str. "\n";
eval("\$str = \"$str\";");
echo $str. "\n";
?>
muruga
i dont understand how to do this with an html page
stefan
It is not do anything difference. The first echo will not interpolate $string value. But the second echo will interpolate the $string value, because of the eval.
muruga