菜鸟提问。。。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[""]->里面应该放的是字母或者下划线打头的字符串。 curl模拟post数据问题 急!在服务器端不创建新文件的情况下怎样将一串数据下载并保存为本地文件 PHP可以连接SQL Server数据库吗? session的问题 在线求助!apache的安装 问大家一个mysql问题,很简单的,进来看看吧,可以赚分哦:) 变态的字符来了 这个怎么提取 为什么表单的数据提交不到处理页 linux9.0+php 请大家帮我看一下文件上传的代码! 100分相送!!!! 简单问题,高份奉送 问一个关于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