<?php
echo $_POST["dd"]; //验证传值是否正常
?>
<form method="post" action="">
<input type="text" name="xm1" value="123" readonly="">
<input type="submit" value="提交">
</form>
注:input如果使用disable来设置禁止修改会传值失败
最后
以上就是美丽音响最近收集整理的关于html表单中的input内容禁止修改(只读)实例的全部内容,更多相关html表单中内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复