粘性表单的一个问题 php没有关闭form前头把PHP关上. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form name="form" method="post" action="test.php"> <input name="ws" type="text" size="20" value=" <?php if(isset($_POST['ws'])) echo $_POST['ws'];?>" /> <input name="submit" type="submit" value="yes" /> <?php if(@$_POST['ws'] != 0){ for($i = 0;$i < $_POST['ws'];$i++){ echo '元素['.($i+1).']'; echo " "; echo ' <input name="Elements[$i]" type="text" size="40" maxlength="60" value="'; if(isset($_POST['Elements[$i]'])){ echo $_POST['Elements[$i]']; }else{ echo $i; } echo '" />'; echo " "; echo ' <input name="submit[]" type="submit" value="确认" />'; echo " <br /> <br />"; } } ?></form>忘打了 php已经关闭了 global 全局变量 出现的问题 php如何post参数到别的页面? 求教 php中抽象类不可以实现接口吗? 关于domxml_open_mem方法的使用,大家来帮帮忙 看到个有趣的招聘,大家来做下这些题目吧 远程获取内容 数组关系匹配 请教一下发email验证邮箱的原理 这个功能PHP可以实现吗? 请教:winxp下, apache 2.0.4+php 4安装后遇到的问题 表单不能插入。。。 有谁用过lunarpages空间或者其它外国空间?说说感受
<input name="ws" type="text" size="20" value=" <?php if(isset($_POST['ws'])) echo $_POST['ws'];?>" />
<input name="submit" type="submit" value="yes" />
<?php
if(@$_POST['ws'] != 0){
for($i = 0;$i < $_POST['ws'];$i++){
echo '元素['.($i+1).']';
echo " ";
echo ' <input name="Elements[$i]" type="text" size="40" maxlength="60" value="';
if(isset($_POST['Elements[$i]'])){
echo $_POST['Elements[$i]'];
}else{
echo $i;
}
echo '" />';
echo " ";
echo ' <input name="submit[]" type="submit" value="确认" />';
echo " <br /> <br />";
}
}
?>
</form>忘打了 php已经关闭了