开发者

Is there a way to load a PHP function into an iframe?

I know this might not be a very good technique, but please understand what I want to do and help me out in doing exactly what I want to do.

I have created an iframe, 开发者_运维问答in a PHP file, and I have a bunch of functions, each use the echo command to echo out text and HTML to the screen. I want to call the PHP function (that echoes) into an iframe, so it takes the contents of the PHP function (the echo) and prints it to the iframe (rendering the HTML and text in the iframe).

How would I do that?


You wouldn't "do that".

An iframe needs to load its' contents from a separate document. Albeit, its' possible to create an iframe with contents in client side scripting, but not server side.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜