xmlHTTP.open那个url对应的PHP内容应该如何写?

missago 2005-09-13 10:29:09
xmlHTTP.open("GET","getUserList.php",false)
getUserList.php的格式应该如何写啊
我的老实取得不了数据,感谢
...全文
213 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
indexroot 2005-10-04
  • 打赏
  • 举报
回复
用xmlHTTP组件发出GET/POST请求:和用浏览器 打开网页/提交表单 一样
surfchen 2005-10-04
  • 打赏
  • 举报
回复
给出全部代码!你如何获取内容???responseXML?responseText???
-神仙- 2005-10-03
  • 打赏
  • 举报
回复
那个是客户端的。。。。。。
首先你直接访问你的php,看看结果对不对
Camelot 2005-10-03
  • 打赏
  • 举报
回复
写错了是response.write xmlHTTP.responsetext
Camelot 2005-10-03
  • 打赏
  • 举报
回复
你确定php页面有数据输出?在xmlHTTP.open("GET","getUserList.php",false)是asp的吧,
在xmlHTTP.open("GET","getUserList.php",false)后面加上response.write.responsetext看看有什么输出吧,
norsd 2005-10-03
  • 打赏
  • 举报
回复
up
missago 2005-09-13
  • 打赏
  • 举报
回复
为什么我这样写的PHP不对呢?

<?php
header("Content type: text/xml; charset=GB2312\n");
echo '<?xml version="1.0" encoding="gb2312" ?>';
?>
<tree>
<?php
require_once './global.php';
$path = $tmplRootDir.$_GET[path];
$f = @opendir($path);
while($name = @readdir($f)) {
//echo $path.'/'.$name;
if ($name=="."||$name==".." || is_file($path.'/'.$name)) continue;
else
echo <<<s
<tree text="$name" action="sysTemplateAdmin.php?path=$_GET[path]/$name" src="sysTemplateTree.php?path=$_GET[path]/$name" target="sm" cId="" />\n
s;
}
?>
</tree>

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧