php中$_POST[]取不到值
<?php
include(“mysql_class.php”);
echo $_POST[name].a;
?>
<?php
$query=$db->query(“select*from p_newsclass where f_id=’0′”本@文来源[email protected]搞@^&代*@码网(搞代gaodaima码
);
while($row=$db->fetch_array($query)){
echo “$row[name]”;
$query_fid=$db->query(“select*from p_newsclass where f_id=’$row[id]'”);
while($row_fid=$db->fetch_array($query_fid)){
echo ” $row_fid[name]”;
}
}
?>
option1
——解决方案——————–
面对这样的问题,我不能一下看出问题(难道仅仅是因为没有提交按钮也没有提交?)
不过可以给你个找问题原因的办法: 装一个firebug 监视所有的网络请求, 看有没有post请求 都post了什么
很多问题一用firebug就迎刃而解…
——解决方案——————–
你没提交怎么可能有值呢