您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

新手请教.get方法如何使用

2024/4/7 5:42:09发布10次查看
刚学jquery,试了一个例子,有两个页面index.html,data.php,但每次执行都显示的都是乱码,请问该怎么办?
index.html
nbsp;html public -//w3c//dtd html 4.01 transitional//en http://www.w3.org/tr/html4/loose.dtd>
new document
show list of:
select
good guye
bad guye
data.php
if($_get['what']=='good')
{
$names=array('sherlock helmes','john watson','hercule poirot','jane marple');
echo gethtml($names);
}
else if($_get['what']=='bad')
{
$names=array('professor moriarty','sebastian moran','charles milverton','von bork','count sylvius');
echo gethtml($names);
}
function gethtml($names)
{
$strresult='';
for($i=0;$i {
$strresult.=''.$names[$i].'';
}
$strresult.='';
return $strresult;
}
?>
回复讨论(解决方案) 没有配置php的环境
最好的办法 看手册
还真是没配置php环境,谢谢
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product