Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过url和动态php加载多个元素中的内容?_Php_Html_Dynamic - Fatal编程技术网

通过url和动态php加载多个元素中的内容?

通过url和动态php加载多个元素中的内容?,php,html,dynamic,Php,Html,Dynamic,我想使用一个页面url www.site.com/index.php?content=page3,并根据url中的content=string,使加载页面的两个或三个部分具有不同的内容?这显然还包括页面标题。您的问题是什么?“为我写代码”?你必须停止思考index.php=网页。这在现代网络技术中是没有意义的。包含这些参数的完整URL标识您感兴趣的“页面”(或对象)。您在该页面中放置的内容完全由您决定。您在服务器端的变量中可以使用参数作为值,因此生成并输出您希望对此作出反应的内容。@u\u mu

我想使用一个页面url www.site.com/index.php?content=page3,并根据url中的content=string,使加载页面的两个或三个部分具有不同的内容?这显然还包括页面标题。

您的问题是什么?“为我写代码”?你必须停止思考
index.php
=
网页
。这在现代网络技术中是没有意义的。包含这些参数的完整URL标识您感兴趣的“页面”(或对象)。您在该页面中放置的内容完全由您决定。您在服务器端的变量中可以使用参数作为值,因此生成并输出您希望对此作出反应的内容。@u\u mulder这根本不是一个有用的注释。关于使用什么类型的标记的一些建议会很有帮助。如果您忘记了网站的规则-请检查。