如何从PHP调用PHP页面并在同一页面上显示输出 [英] How to call PHP page from PHP and display output on the same page

查看:90
本文介绍了如何从PHP调用PHP页面并在同一页面上显示输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了table.html和telent.php页面,它们给出了一些结果html页面显示表格和php页面显示telnet结果,创建了一个更多的result.php页面来调用这些页面wih href。它的工作正常。



我期待在调用(点击)时在result.php上显示页面(table.html和telent.php)结果。



我尝试过的事情:



我没试过。寻找一些来代码或参考。

解决方案

你可以这样做<form> [ ^ ]

您可以通过 AJAX [ ^ ]



表格将重新加载目标页面(action ='')

AJAX将更新您现有的页面。





I have develop table.html and telent.php pages, which gives some results html page display tables and php page display telnet result, have created one more result.php page to call these pages wih href. and its working fine.

I am looking forward to display the pages(table.html and telent.php) result on result.php when they are called (clicked).

What I have tried:

nothing i have tried. looking for some one to frwd the code or ref.

解决方案

You can do this as a <form>[^]
You can do this via AJAX[^]

The form will reload the target page (action='')
The AJAX will update your existing page.



这篇关于如何从PHP调用PHP页面并在同一页面上显示输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆