关于echo 哪位仁兄给小弟详细列些echo内嵌入HTML页面元素的用法.关键是echo " 作用域的问题,搞的我一头雾水.最好能配合例子讲解下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?echo "<input type='text'>";?> <?echo <<<NOT <TABLE> <TR> <TD></TD> <TD></TD> </TR> <TR> <TD></TD> <TD></TD> </TR> </TABLE>NOT;?> echo"<html>\n"; echo " <body> <H1><FONT SIZE=12 ><center>世纪情缘</center></FONT></H1> <select name=ID> <option></option>"; include("./conf/21net.inc"); $assay_cfg=file("conf/21vianet.cfg") or die("系统故障,请与管理员联系。"); if(count($assay_cfg) < 4 || strlen($assay_cfg[0]) < 7 || strlen($assay_cfg[1]) < 7 || strlen($assay_cfg[2]) < 11 ||strlen($assay_cfg[3]) < 11) die("配置文件21vianet.cfg格式不正确!"); $host = trim(substr($assay_cfg[0],5,-1)); $user = trim(substr($assay_cfg[1],5,-1)); $password = trim(substr($assay_cfg[2],9,-1)); $database = trim(substr($assay_cfg[3],9,-1)); $ipaddr= trim(substr($assay_cfg[4],7,-1)); $connect=@mysql_pconnect($host,$user,$password) or die("数据库联接失败!"); $sele_db=@mysql_select_db($database,$connect) or die("选择数据库失败!"); $str="select* from switch"; $result=mysql_query($str,$connect); for($i=0;$i<mysql_num_rows($result);$i++) { $row=mysql_fetch_array($result); $Item[]=$row["name"]; printf("<option>%s</option>",$Item[$i]); } echo "</select> "; echo"</body></html>";为什么我写的这段不能获取下拉框的OPTION项呢? 有无办法使函数里的include变为全局incdue PHP 如何使用正则表达式过滤如下字符? php怎样实现对gif图像的处理 奇了怪了,session存不住,不知什么原因 为什么打开某些网页没有看到扩展名比如.asp,.php等而有些网页就有 求这种的算法 正则表达式如何表示“/”? php问题,急! preg_replace改写preg_replace_callback的问题 coreseek中到底如何设置 怎么通过PHP实现,服务端数据变化。怎么通知到IE客户端 php如何使用iframe急!!!!
echo "<input type='text'>";
?>
echo <<<NOT
<TABLE>
<TR>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD></TD>
<TD></TD>
</TR>
</TABLE>
NOT;
?>
echo "
<body>
<H1><FONT SIZE=12 ><center>世纪情缘</center></FONT></H1>
<select name=ID>
<option></option>";
include("./conf/21net.inc");
$assay_cfg=file("conf/21vianet.cfg") or die("系统故障,请与管理员联系。");
if(count($assay_cfg) < 4 || strlen($assay_cfg[0]) < 7 || strlen($assay_cfg[1]) < 7 || strlen($assay_cfg[2]) < 11 ||strlen($assay_cfg[3]) < 11)
die("配置文件21vianet.cfg格式不正确!");
$host = trim(substr($assay_cfg[0],5,-1));
$user = trim(substr($assay_cfg[1],5,-1));
$password = trim(substr($assay_cfg[2],9,-1));
$database = trim(substr($assay_cfg[3],9,-1));
$ipaddr= trim(substr($assay_cfg[4],7,-1));
$connect=@mysql_pconnect($host,$user,$password) or die("数据库联接失败!");
$sele_db=@mysql_select_db($database,$connect) or die("选择数据库失败!");
$str="select* from switch";
$result=mysql_query($str,$connect);
for($i=0;$i<mysql_num_rows($result);$i++)
{
$row=mysql_fetch_array($result);
$Item[]=$row["name"];
printf("<option>%s</option>",$Item[$i]);
} echo "</select> ";
echo"</body></html>";
为什么我写的这段不能获取下拉框的OPTION项呢?