如何从数据库重置文本框中的值,从数据库获取值?

时间:2015-07-10 09:52:57

标签: php mysql

文本框显示来自数据库的值。当我点击清除按钮时,值将被重置。但是我不能这样做。请帮助我。如何在文本框中重置数据库中的值。 代码:

<a id="button1" href="http://www.cmatm.net/sample/sheet.php?id=<?php echo $id; ?>"  type="button" style="margin:0;padding:0;" name="button1id" class="btn btn-success" onclick="window.location.href='sheet.php'">Edit</a>

清除

1 个答案:

答案 0 :(得分:0)

希望我理解这一点。

要清除表单,您需要这样做:

<button form="yourform" type="reset">reset</button>
相关问题