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环境,谢谢
