开发者

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

开发者 https://www.devze.com 2023-03-24 15:45 出处:网络
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 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

精彩评论

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