菜鸟提问。。。php中动态产生html <? if(){ echo "<input type=button>"; //这里显示 }else{ echo ""; }?>你说的我不知道为什么不行,但代码绝对可以用。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?phpif($_POST['确定']){?><input type="text" name="user" size=10 maxlength=10><?php}?> <?phpif($_POST["确定"]){echo '<input type="text" name="user" size=10 maxlength=10>';}elseecho '';?> <?phpif($_POST["确定"]){ echo "<input type=\"text\" name=\"user\" size=\"10\" maxlength=\"10\">";} else { echo "";} 可以先echo $_POST["确定"];变量看看 <? if(isset($_POST["确定"])){ echo "<input type=button>"; //这里显示 }else{ echo ""; }?> 使用isset函数可以判断是否设置了 $_POST["确定"] 这个变量如果设置了返回true,否则返回false 变量名有用中文的么?$_POST[""]->里面应该放的是字母或者下划线打头的字符串。 我有一个php页面,会即时去后台抓取大量数据输出 PHP+MYSQL乱码,求助 $this变量的全部作用 求一mysql查询语句 服务器需要怎样设置才能远程打开文件? ◆◇用apache配置过php的虚拟web的请进▲△ 兄弟快要抓狂了 :( php可是实现下面的功能吗?不知如何传递数组或者字符串 简单的循环问题!! 文本文件为什么不能以W方式打开? namespace在php中用的多吗? 问一个关于DISCUZ的及其简单的问题:) php读取网页问题
if($_POST['确定'])
{
?>
<input type="text" name="user" size=10 maxlength=10>
<?php
}
?>
if($_POST["确定"])
{
echo '<input type="text" name="user" size=10 maxlength=10>';
}
else
echo '';
?>
if($_POST["确定"])
{
echo "<input type=\"text\" name=\"user\" size=\"10\" maxlength=\"10\">";
} else {
echo "";
}
if(isset($_POST["确定"])){
echo "<input type=button>"; //这里显示
}else{
echo "";
}
?>
如果设置了返回true,否则返回false