关于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项呢? sql语句的问题 求助 php调用sqlserver 存储过程,window可以,linux会不行吗? php的函数file()的用法 有没有这样的php数据库操作类么? 大家好,问一下:如何给一个页面加密 正则高手进来看看,如何提取这种单元格内容. <form target="<?php echo $PHP_SELF;?>" method=get>是什么意思 怎么样能采集到顽兔网的数据 请问是哪里出了错??? php如何将mac地址转成数字,以及数字转成mac地址? 怎么通过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项呢?